Skip to content

Commit

Permalink
Tolerate Python < 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Sep 17, 2024
1 parent 9ca2550 commit 4df5152
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mathics_scanner/data/named-characters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# unicode names that we check against. So if the character
# or unicode symbol is not in that, don't use it here.
#
# wl-reference: HTML link to the Workfram Langauge & System document for character.
# wl-reference: HTML link to the Worlfram Langauge & System document for character.
#
# wl-unicode: The unicode code point used by Mathics internally to represent
# the named character. If it is the same as unicode-equivalent
Expand Down
6 changes: 4 additions & 2 deletions test/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import os
from urllib.error import HTTPError, URLError

# from urllib.error import HTTPError, URLError
from urllib.request import urlopen

import pytest
Expand All @@ -26,5 +27,6 @@ def test_yaml_urls():
html = response.read()
assert html, f"should have been able to get HTML for {k} ({url})"
print(f"got {k}")
except* (URLError, HTTPError):
# except* (URLError, HTTPError): # for when we have 3.11+
except Exception:
assert False, f"{k} ({url}) fails"

0 comments on commit 4df5152

Please sign in to comment.