diff options
Diffstat (limited to 'tests/run/importfrom.pyx')
-rw-r--r-- | tests/run/importfrom.pyx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/importfrom.pyx b/tests/run/importfrom.pyx index 52bc67611..a3e5de78d 100644 --- a/tests/run/importfrom.pyx +++ b/tests/run/importfrom.pyx @@ -68,6 +68,10 @@ def typed_imports(): try: from sys import version_info as maxunicode except TypeError, e: + if getattr(sys, "pypy_version_info", None): + # translate message + if e.args[0].startswith("int() argument must be"): + e = "an integer is required" print(e) try: |