test_sstv: allow for rounding differences

ironpython
András Veres-Szentkirályi 2013-07-02 15:05:45 +02:00
rodzic c29f696489
commit b6c169503f
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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