tests: add xrange alias for test-pathencode.py
authorAugie Fackler <raf@durin42.com>
Sat, 16 Sep 2017 11:47:53 -0400
changeset 34224 0f200e2310ca
parent 34223 fa9f5d6733d3
child 34225 d43340bec0f5
tests: add xrange alias for test-pathencode.py
tests/test-pathencode.py
--- 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'))