Compare float with assertAlmostEqual
This commit is contained in:
parent
fdbbc3a20d
commit
384f1d5107
@ -135,7 +135,7 @@ class BlendFileBlockTest(AbstractBlendFileTest):
|
|||||||
def test_get_via_dict_interface(self):
|
def test_get_via_dict_interface(self):
|
||||||
ma = self.bf.code_index[b'MA'][0]
|
ma = self.bf.code_index[b'MA'][0]
|
||||||
assert isinstance(ma, blendfile.BlendFileBlock)
|
assert isinstance(ma, blendfile.BlendFileBlock)
|
||||||
self.assertEqual(0.8000000715255737, ma[b'r'])
|
self.assertAlmostEqual(0.8000000715255737, ma[b'r'])
|
||||||
|
|
||||||
ob = self.bf.code_index[b'OB'][0]
|
ob = self.bf.code_index[b'OB'][0]
|
||||||
assert isinstance(ob, blendfile.BlendFileBlock)
|
assert isinstance(ob, blendfile.BlendFileBlock)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user