From b6c169503f61d03c57eb6ce5b1490a10ae94b09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Tue, 2 Jul 2013 15:05:45 +0200 Subject: [PATCH] test_sstv: allow for rounding differences --- pysstv/tests/test_sstv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pysstv/tests/test_sstv.py b/pysstv/tests/test_sstv.py index 1b6abc6..805e043 100644 --- a/pysstv/tests/test_sstv.py +++ b/pysstv/tests/test_sstv.py @@ -59,7 +59,8 @@ class TestSSTV(unittest.TestCase): sstv.random = MagicMock(return_value=0.4) # xkcd:221 expected = pickle.load(open(get_asset_filename("SSTV_gen_samples.p"))) actual = list(islice(gen_values, 0, 1000)) - self.assertEqual(expected, actual) + for e, a in izip(expected, actual): + self.assertAlmostEqual(e, a, delta=1) def test_write_wav(self): self.maxDiff = None