summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_machar.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-09-16 07:14:48 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-09-16 07:14:48 +0000
commit064d50496ce946cb54e0901ac10967d9e0126b20 (patch)
tree84b41e7e95bf4b9b34a0da92fa9133665e50d48e /numpy/lib/tests/test_machar.py
parent1c321def2841860d97cd335a6a34fc8abed4a548 (diff)
downloadnumpy-064d50496ce946cb54e0901ac10967d9e0126b20.tar.gz
Move finfo into core.
Diffstat (limited to 'numpy/lib/tests/test_machar.py')
-rw-r--r--numpy/lib/tests/test_machar.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/numpy/lib/tests/test_machar.py b/numpy/lib/tests/test_machar.py
deleted file mode 100644
index 64abf7236..000000000
--- a/numpy/lib/tests/test_machar.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from numpy.testing import *
-
-from numpy.lib.machar import MachAr
-import numpy.core.numerictypes as ntypes
-from numpy import seterr, array
-
-class TestMachAr(TestCase):
- def _run_machar_highprec(self):
- # Instanciate MachAr instance with high enough precision to cause
- # underflow
- try:
- hiprec = ntypes.float96
- machar = MachAr(lambda v:array([v], hiprec))
- except AttributeError:
- "Skipping test: no nyptes.float96 available on this platform."
-
- def test_underlow(self):
- """Regression testing for #759: instanciating MachAr for dtype =
- np.float96 raises spurious warning."""
- serrstate = seterr(all='raise')
- try:
- try:
- self._run_machar_highprec()
- except FloatingPointError, e:
- self.fail("Caught %s exception, should not have been raised." % e)
- finally:
- seterr(**serrstate)
-
-
-if __name__ == "__main__":
- run_module_suite()