Skip to content

Commit b4f9de4

Browse files
fangerertimfel
authored andcommitted
Update set of expected symbols in '_cpython_sre'.
1 parent 15d8ef3 commit b4f9de4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_cpython_sre.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ class TestSRE:
4747
def test_sre_import(self):
4848
if GRAALPYTHON:
4949
import _cpython_sre
50-
assert set(_cpython_sre.__dict__.keys()) == {'__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', 'compile', 'getcodesize', 'getlower', 'MAGIC', 'CODESIZE', 'MAXREPEAT', 'MAXGROUPS', 'copyright'}, "was: %s" % set(_cpython_sre.__dict__.keys())
50+
# just ensure that we are providing all symbols
51+
expected = {'CODESIZE', 'MAGIC', 'MAXGROUPS', 'MAXREPEAT', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'ascii_iscased', 'ascii_tolower', 'compile', 'copyright', 'getcodesize', 'unicode_iscased', 'unicode_tolower'}
52+
actual = set(_cpython_sre.__dict__.keys())
53+
for expected_item in expected:
54+
assert expected_item in actual, "_cpython_sre module is missing symbol '%s'" % expected_item
5155

5256
def test_backreference(self):
5357
import re

0 commit comments

Comments
 (0)