diff tests/test-pathencode.py @ 34224:0f200e2310ca

tests: add xrange alias for test-pathencode.py
author Augie Fackler <raf@durin42.com>
date Sat, 16 Sep 2017 11:47:53 -0400
parents 59481bfdb7f3
children d43340bec0f5
line wrap: on
line diff
--- a/tests/test-pathencode.py	Sat Sep 16 11:33:16 2017 -0400
+++ b/tests/test-pathencode.py	Sat Sep 16 11:47:53 2017 -0400
@@ -19,6 +19,11 @@
     store,
 )
 
+try:
+    xrange
+except NameError:
+    xrange = range
+
 validchars = set(map(chr, range(0, 256)))
 alphanum = range(ord('A'), ord('Z'))