summaryrefslogtreecommitdiff
path: root/dev-ros/unique_id/files/tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/unique_id/files/tests.patch')
-rw-r--r--dev-ros/unique_id/files/tests.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-ros/unique_id/files/tests.patch b/dev-ros/unique_id/files/tests.patch
new file mode 100644
index 000000000000..b64a1be5e38b
--- /dev/null
+++ b/dev-ros/unique_id/files/tests.patch
@@ -0,0 +1,17 @@
+Index: unique_id/tests/test_unique_id.py
+===================================================================
+--- unique_id.orig/tests/test_unique_id.py
++++ unique_id/tests/test_unique_id.py
+@@ -20,10 +20,10 @@ class TestPythonUUID(unittest.TestCase):
+ def test_random_uuids(self):
+ N = 1000
+ uu = []
+- for i in xrange(N):
++ for i in range(N):
+ uu.append(fromRandom())
+ self.assertEqual(type(uu[i]), uuid.UUID)
+- for j in xrange(i-1, -1, -1):
++ for j in range(i-1, -1, -1):
+ self.assertNotEqual(uu[i], uu[j])
+
+ # UUID generation from URL tests