summaryrefslogtreecommitdiff
path: root/tests/test_getlimits.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-12-30 03:36:50 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-12-30 03:36:50 +0000
commit50b26d2464f607566bf66986832636816eaa6d05 (patch)
tree33aa5156a0924423505fa77d0f4a4235b18e23ce /tests/test_getlimits.py
parent89d0310a07059f4b75aaaf6764326c97afdd1014 (diff)
downloadnumpy-50b26d2464f607566bf66986832636816eaa6d05.tar.gz
Merge changes to the trunk to this branch.
Diffstat (limited to 'tests/test_getlimits.py')
-rw-r--r--tests/test_getlimits.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_getlimits.py b/tests/test_getlimits.py
index 3c53f3322..a85228689 100644
--- a/tests/test_getlimits.py
+++ b/tests/test_getlimits.py
@@ -2,12 +2,10 @@
"""
from numpy.testing import *
-set_package_path()
import numpy.lib;reload(numpy.lib)
from numpy.lib.getlimits import finfo, iinfo
from numpy import single,double,longdouble
-import numpy as N
-restore_path()
+import numpy as np
##################################################
@@ -39,15 +37,15 @@ class TestIinfo(NumpyTestCase):
def check_basic(self):
dts = zip(['i1', 'i2', 'i4', 'i8',
'u1', 'u2', 'u4', 'u8'],
- [N.int8, N.int16, N.int32, N.int64,
- N.uint8, N.uint16, N.uint32, N.uint64])
+ [np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64])
for dt1, dt2 in dts:
assert_equal(iinfo(dt1).min, iinfo(dt2).min)
assert_equal(iinfo(dt1).max, iinfo(dt2).max)
self.assertRaises(ValueError, iinfo, 'f4')
def check_unsigned_max(self):
- types = N.sctypes['uint']
+ types = np.sctypes['uint']
for T in types:
assert_equal(iinfo(T).max, T(-1))