From bf2efdabeab16935d049ced4a4d2ccc8908838f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 12 Jan 2017 12:25:03 +0100 Subject: [PATCH] test_sstv: handle iterables in a more portable way --- pysstv/tests/test_sstv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysstv/tests/test_sstv.py b/pysstv/tests/test_sstv.py index b4c18a8..9991996 100644 --- a/pysstv/tests/test_sstv.py +++ b/pysstv/tests/test_sstv.py @@ -22,7 +22,7 @@ class TestSSTV(unittest.TestCase): def test_horizontal_sync(self): horizontal_sync = self.s.horizontal_sync() expected = (1200, self.s.SYNC) - actual = horizontal_sync.next() + actual = next(iter(horizontal_sync)) self.assertEqual(expected, actual) def test_gen_freq_bits(self):