Commit 7625f317 by Alexander Bertsch Committed by Victor M. Alvarez

Fix test for Python 3 (#60)

parent 48f17ed1
......@@ -951,12 +951,12 @@ class TestYara(unittest.TestCase):
for i, r in enumerate(rules, start=1):
self.assertTrue(r.identifier == 'test%d' % i)
it = rules.__iter__()
r = it.next()
it = iter(rules)
r = next(it)
self.assertTrue(r.identifier == 'test1')
r = it.next()
r = next(it)
self.assertTrue(r.identifier == 'test2')
r = it.next()
r = next(it)
self.assertTrue(r.identifier == 'test3')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment