[pypy-commit] pypy default: make this test failure more obvious
bdkearns
noreply at buildbot.pypy.org
Sat Feb 16 22:19:23 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r61332:b5e96acf8bd1
Date: 2013-02-16 05:39 -0500
http://bitbucket.org/pypy/pypy/changeset/b5e96acf8bd1/
Log: make this test failure more obvious
diff --git a/pypy/module/test_lib_pypy/numpypy/test_numpy.py b/pypy/module/test_lib_pypy/numpypy/test_numpy.py
--- a/pypy/module/test_lib_pypy/numpypy/test_numpy.py
+++ b/pypy/module/test_lib_pypy/numpypy/test_numpy.py
@@ -10,9 +10,21 @@
import numpy # works after 'numpypy' has been imported
def test_min_max_after_import(self):
+ import __builtin__
+
from numpypy import *
+ assert min is __builtin__.min
+ assert max is __builtin__.max
+
assert min(1, 100) == 1
assert min(100, 1) == 1
assert max(1, 100) == 100
assert max(100, 1) == 100
+
+ assert min(4, 3, 2, 1) == 1
+ assert max(1, 2, 3, 4) == 4
+
+ from numpypy import min, max
+ assert min is not __builtin__.min
+ assert max is not __builtin__.max
More information about the pypy-commit
mailing list