Skip to content

Commit 271408d

Browse files
committed
relax test case
1 parent 3137131 commit 271408d

File tree

1 file changed

+2
-3
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_re.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def test_json_bytes_re_compile():
7373
try:
7474
json.encoder.HAS_UTF8.search("\x80")
7575
except TypeError as e:
76-
assert "cannot use a bytes pattern on a string-like object" in str(e)
76+
pass
7777
else:
78-
assert False
78+
assert False, "searching a bytes-pattern in a str did not raise"
7979

8080

8181
class S(str):
@@ -310,4 +310,3 @@ def test_escaping(self):
310310
self.assertTrue(match)
311311
assert "frac" in match.groupdict()
312312
assert match.groupdict()["frac"] == "1"
313-

0 commit comments

Comments
 (0)