--- a/tests/run-tests.py Fri Apr 17 09:46:43 2015 -0700
+++ b/tests/run-tests.py Fri Apr 17 14:12:01 2015 -0700
@@ -1065,7 +1065,7 @@
while i < n:
c = el[i]
i += 1
- if c == '\\' and el[i] in '*?\\/':
+ if c == '\\' and i < n and el[i] in '*?\\/':
res += el[i - 1:i + 1]
i += 1
elif c == '*':