[pypy-commit] pypy default: fix test_fill
bdkearns
noreply at buildbot.pypy.org
Wed Oct 22 07:03:55 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r74062:9adf3b34a33e
Date: 2014-10-21 22:02 -0700
http://bitbucket.org/pypy/pypy/changeset/9adf3b34a33e/
Log: fix test_fill
diff --git a/pypy/module/micronumpy/test/test_scalar.py b/pypy/module/micronumpy/test/test_scalar.py
--- a/pypy/module/micronumpy/test/test_scalar.py
+++ b/pypy/module/micronumpy/test/test_scalar.py
@@ -386,13 +386,16 @@
assert len(res) == 0
def test_fill(self):
+ import sys
from numpypy import int8, int16, int32, int64, float32, float64
from numpypy import complex64, complex128
for t in (int8, int16, int32, int64, float32, float64,
complex64, complex128):
t(17).fill(2)
- exc = TypeError if t in (complex64, complex128) else ValueError
+ exc = (TypeError if t in (complex64, complex128)
+ and '__pypy__' not in sys.builtin_module_names
+ else ValueError)
raises(exc, t(17).fill, '')
def test_conj(self):
More information about the pypy-commit
mailing list