mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
check pull.__next__ on py3 in pipeline tests
This commit is contained in:
parent
8c2809f75c
commit
433ac368df
1 changed files with 4 additions and 1 deletions
|
|
@ -136,7 +136,10 @@ class ExceptionTest(unittest.TestCase):
|
||||||
pull = pl.pull()
|
pull = pl.pull()
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
next(pull)
|
next(pull)
|
||||||
self.assertRaises(TestException, pull.next)
|
if six.PY2:
|
||||||
|
self.assertRaises(TestException, pull.next)
|
||||||
|
else:
|
||||||
|
self.assertRaises(TestException, pull.__next__)
|
||||||
|
|
||||||
|
|
||||||
class ParallelExceptionTest(unittest.TestCase):
|
class ParallelExceptionTest(unittest.TestCase):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue