diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:10 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:10 +0000 |
commit | 11b80e7bd14501f33e6e0d9704afca8b10dce695 (patch) | |
tree | 9df9d7e9a44c7e6711feed9101363f380643a820 /numpy/ma/tests | |
parent | 9f9098f6f77f82eddb2471991d08ec0a37ead6f9 (diff) | |
download | numpy-11b80e7bd14501f33e6e0d9704afca8b10dce695.tar.gz |
3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce
Instead, manually import reduce where necessary.
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r-- | numpy/ma/tests/test_core.py | 4 | ||||
-rw-r--r-- | numpy/ma/tests/test_old_ma.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index 74bd2f722..7494de4cd 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -19,6 +19,10 @@ from numpy.ma.core import * pi = np.pi +import sys +if sys.version_info[0] >= 3: + from functools import reduce + #.............................................................................. class TestMaskedArray(TestCase): "Base test class for MaskedArrays." diff --git a/numpy/ma/tests/test_old_ma.py b/numpy/ma/tests/test_old_ma.py index 4887a228c..cf169dd70 100644 --- a/numpy/ma/tests/test_old_ma.py +++ b/numpy/ma/tests/test_old_ma.py @@ -5,6 +5,10 @@ from numpy.core.numerictypes import float32 from numpy.ma.core import umath from numpy.testing import * +import sys +if sys.version_info[0] >= 3: + from functools import reduce + pi = numpy.pi def eq(v,w, msg=''): result = allclose(v,w) |