changeset 34231: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 fa9f5d6733d3
children d43340bec0f5
files tests/test-pathencode.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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'))