[pypy-commit] pypy default: don't special case this for -A, we want to see when behavior differs
bdkearns
noreply at buildbot.pypy.org
Tue Feb 26 03:36:45 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r61806:4229fcf77d6f
Date: 2013-02-25 21:09 -0500
http://bitbucket.org/pypy/pypy/changeset/4229fcf77d6f/
Log: don't special case this for -A, we want to see when behavior differs
diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -4,12 +4,6 @@
class AppTestUfuncs(BaseNumpyAppTest):
- def setup_class(cls):
- import sys
- BaseNumpyAppTest.setup_class.im_func(cls)
- cls.w_isNumpy = cls.space.wrap(option.runappdirect \
- and '__pypy__' not in sys.builtin_module_names)
-
def test_ufunc_instance(self):
from numpypy import add, ufunc
@@ -96,17 +90,16 @@
uncallable.add(s)
return uncallable
assert find_uncallable_ufuncs(np.array(1, 'int')) == set()
- if not self.isNumpy:
- assert find_uncallable_ufuncs(np.array(1, 'bool')) == set()
- assert find_uncallable_ufuncs(np.array(1, 'float')) == set(
- ['bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor',
- 'left_shift', 'right_shift', 'invert'])
- assert find_uncallable_ufuncs(np.array(1, 'complex')) == set(
- ['bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor',
- 'arctan2', 'deg2rad', 'degrees', 'rad2deg', 'radians',
- 'fabs', 'fmod', 'invert', 'isneginf', 'isposinf',
- 'logaddexp', 'logaddexp2', 'left_shift', 'right_shift',
- 'copysign', 'signbit', 'ceil', 'floor', 'trunc'])
+ assert find_uncallable_ufuncs(np.array(1, 'bool')) == set()
+ assert find_uncallable_ufuncs(np.array(1, 'float')) == set(
+ ['bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor',
+ 'left_shift', 'right_shift', 'invert'])
+ assert find_uncallable_ufuncs(np.array(1, 'complex')) == set(
+ ['bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor',
+ 'arctan2', 'deg2rad', 'degrees', 'rad2deg', 'radians',
+ 'fabs', 'fmod', 'invert', 'isneginf', 'isposinf',
+ 'logaddexp', 'logaddexp2', 'left_shift', 'right_shift',
+ 'copysign', 'signbit', 'ceil', 'floor', 'trunc'])
def test_int_only(self):
from numpypy import bitwise_and, array
More information about the pypy-commit
mailing list