Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r75914:e8654d723f68
Date: 2015-02-16 09:54 +0100
http://bitbucket.org/pypy/pypy/changeset/e8654d723f68/
Log: Fix syntax error in test
diff --git a/pypy/module/_sre/test/test_app_sre.py
b/pypy/module/_sre/test/test_app_sre.py
--- a/pypy/module/_sre/test/test_app_sre.py
+++ b/pypy/module/_sre/test/test_app_sre.py
@@ -206,8 +206,8 @@
import sys
if sys.version_info < (2, 7, 9):
skip()
- assert re.match("(foo)", "foo").group(1L) == "foo"
- exc = raises(IndexError, re.match("", "").group, sys.maxint + 1)
+ assert re.match("(foo)", "foo").group(1) == "foo"
+ exc = raises(IndexError, re.match("", "").group, sys.maxsize + 1)
assert str(exc.value) == "no such group"
def test_expand(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit