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):