devtools/test/unittest_dbfill.py
changeset 10609 e2d8e81bfe68
parent 9674 96549de9dd70
child 10614 57dfde80df11
--- a/devtools/test/unittest_dbfill.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/devtools/test/unittest_dbfill.py	Tue Sep 15 16:56:57 2015 +0200
@@ -22,6 +22,8 @@
 import re
 import datetime
 
+from six.moves import range
+
 from logilab.common.testlib import TestCase, unittest_main
 
 from cubicweb.devtools.fill import ValueGenerator, make_tel
@@ -86,7 +88,7 @@
         # Test for random index
         for index in range(5):
             cost_value = self.bug_valgen.generate_attribute_value({}, 'cost', index)
-            self.assertIn(cost_value, range(index+1))
+            self.assertIn(cost_value, list(range(index+1)))
 
     def test_date(self):
         """test date generation"""