def test_atol(self):
     self.assertTrue(strop.atol(" 1 ") == 1L)
     self.assertRaises(ValueError, strop.atol, " 1x")
     self.assertRaises(ValueError, strop.atol, " x1 ")
 def test_atol(self):
     self.assertTrue(strop.atol(" 1 ") == 1L)
     self.assertRaises(ValueError, strop.atol, " 1x")
     self.assertRaises(ValueError, strop.atol, " x1 ")
示例#3
0
import warnings
示例#4
0
import warnings