示例#1
0
 def test_all_numpy_func(self):
     q = [0, 1] * self.ureg.m
     self.assertFalse(np.all(q))
     self.assertRaises(ValueError, np.all, self.q_temperature)
示例#2
0
文件: test_numpy.py 项目: wiki01/pint
 def test_all_numpy_func(self):
     q = [0, 1] * self.ureg.m
     assert not np.all(q)
     with pytest.raises(ValueError):
         np.all(self.q_temperature)