Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
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
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to