From 384f1d5107980bbc68f232f49b4b1d7b46a17c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 9 Mar 2018 11:20:38 +0100 Subject: [PATCH] Compare float with assertAlmostEqual --- tests/test_blendfile_loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_blendfile_loading.py b/tests/test_blendfile_loading.py index 8ab2f4c..be55646 100644 --- a/tests/test_blendfile_loading.py +++ b/tests/test_blendfile_loading.py @@ -135,7 +135,7 @@ class BlendFileBlockTest(AbstractBlendFileTest): def test_get_via_dict_interface(self): ma = self.bf.code_index[b'MA'][0] 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] assert isinstance(ob, blendfile.BlendFileBlock)