summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorBartosz Telenczuk <muchatel@poczta.fm>2013-01-31 15:21:14 +0100
committerBartosz Telenczuk <muchatel@poczta.fm>2013-06-12 15:08:51 +0200
commit7c4e9e14c473060595271a856b307bbc04f1c7bb (patch)
tree53bf3a37778166b1c3f6b4b16f62a04469e0e85f /numpy/lib/tests
parentb69c48d34d6b6d9be01f37bd5117e946e2556df8 (diff)
downloadnumpy-7c4e9e14c473060595271a856b307bbc04f1c7bb.tar.gz
adjust the optimal IO buffer size for npz files
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_io.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index aae95ed86..20fc5b665 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -43,9 +43,8 @@ class TextIO(BytesIO):
MAJVER, MINVER = sys.version_info[:2]
+IS_64BIT = sys.maxsize > 2**32
-def is_64bit_platform():
- return sys.maxsize> 2**32
def strptime(s, fmt=None):
"""This function is available in the datetime module only
@@ -142,11 +141,10 @@ class TestSavezLoad(RoundtripTest, TestCase):
for n, arr in enumerate(self.arr):
assert_equal(arr, self.arr_reloaded['arr_%d' % n])
-
- @np.testing.dec.skipif(not is_64bit_platform(), "Works only with 64bit systems")
+ @np.testing.dec.skipif(not IS_64BIT, "Works only with 64bit systems")
@np.testing.dec.slow
def test_big_arrays(self):
- L = 2**31+1
+ L = (1 << 31) + 100000
tmp = mktemp(suffix='.npz')
a = np.empty(L, dtype=np.uint8)
np.savez(tmp, a=a)