check pull.__next__ on py3 in pipeline tests

This commit is contained in:
Johnny Robeson 2016-06-23 02:55:59 -04:00
parent 8c2809f75c
commit 433ac368df

View file

@ -136,7 +136,10 @@ class ExceptionTest(unittest.TestCase):
pull = pl.pull()
for i in range(3):
next(pull)
if six.PY2:
self.assertRaises(TestException, pull.next)
else:
self.assertRaises(TestException, pull.__next__)
class ParallelExceptionTest(unittest.TestCase):