[pypy-commit] pypy py3.5: fix for test

arigo pypy.commits at gmail.com
Thu Nov 10 03:59:15 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r88287:01bd875e7563
Date: 2016-11-10 09:58 +0100
http://bitbucket.org/pypy/pypy/changeset/01bd875e7563/

Log:	fix for test

diff --git a/pypy/module/math/app_math.py b/pypy/module/math/app_math.py
--- a/pypy/module/math/app_math.py
+++ b/pypy/module/math/app_math.py
@@ -1,5 +1,8 @@
 import sys
-from _operator import index
+try:
+    from _operator import index
+except ImportError:
+    pass      # for tests only
 
 def factorial(x):
     """factorial(x) -> Integral


More information about the pypy-commit mailing list