Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86405:49cf5d090872
Date: 2016-08-22 11:20 +0200
http://bitbucket.org/pypy/pypy/changeset/49cf5d090872/
Log: fix test
diff --git a/pypy/module/_sre/test/support_test_app_sre.py
b/pypy/module/_sre/test/support_test_app_sre.py
--- a/pypy/module/_sre/test/support_test_app_sre.py
+++ b/pypy/module/_sre/test/support_test_app_sre.py
@@ -1,6 +1,13 @@
"""Support functions for app-level _sre tests."""
import locale, _sre
-from sre_constants import OPCODES, ATCODES, CHCODES, MAXREPEAT
+from sre_constants import OPCODES as _OPCODES
+from sre_constants import ATCODES as _ATCODES
+from sre_constants import CHCODES as _CHCODES
+from sre_constants import MAXREPEAT
+
+OPCODES = {_opcode.name.lower(): int(_opcode) for _opcode in _OPCODES}
+ATCODES = {_atcode.name.lower(): int(_atcode) for _atcode in _ATCODES}
+CHCODES = {_chcode.name.lower(): int(_chcode) for _chcode in _CHCODES}
def encode_literal(string):
opcodes = []
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit