We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3137131 commit 271408dCopy full SHA for 271408d
graalpython/com.oracle.graal.python.test/src/tests/test_re.py
@@ -73,9 +73,9 @@ def test_json_bytes_re_compile():
73
try:
74
json.encoder.HAS_UTF8.search("\x80")
75
except TypeError as e:
76
- assert "cannot use a bytes pattern on a string-like object" in str(e)
+ pass
77
else:
78
- assert False
+ assert False, "searching a bytes-pattern in a str did not raise"
79
80
81
class S(str):
@@ -310,4 +310,3 @@ def test_escaping(self):
310
self.assertTrue(match)
311
assert "frac" in match.groupdict()
312
assert match.groupdict()["frac"] == "1"
313
-
0 commit comments