def test_is_nan_with_numpy(self):
     # known to cause problems historically:
     try:
         import numpy
         self.assertFalse(is_nan(numpy.array([1, 2, 3])))
     except ImportError:
         raise SkipTest('No numpy')
Esempio n. 2
0
 def test_is_nan_with_numpy(self):
     # known to cause problems historically:
     try:
         import numpy
         self.assertFalse(is_nan(numpy.array([1, 2, 3])))
     except ImportError:
         raise SkipTest('No numpy')
 def test_is_nan(self):
     self.assertTrue(is_nan(float('nan')))
     self.assertFalse(is_nan(23.3))
     self.assertFalse(is_nan(23))
Esempio n. 4
0
 def test_is_nan(self):
     self.assertTrue(is_nan(float('nan')))
     self.assertFalse(is_nan(23.3))
     self.assertFalse(is_nan(23))