# HG changeset patch # User Simon Heimberg # Date 1373752675 -7200 # Node ID 3f370565e2913d373a88a77936d48f2828c1d367 # Parent e1d949ad7cdaf56af53946ab59b2dcb31b5780c1 run-tests: test for os.altsep instead of os.name when checking \ for / This tells more explicitly what it is about [ original upstream message ] diff -r e1d949ad7cda -r 3f370565e291 tests/run-tests.py --- a/tests/run-tests.py Wed Jul 17 13:42:08 2013 -0700 +++ b/tests/run-tests.py Sat Jul 13 23:57:55 2013 +0200 @@ -605,7 +605,7 @@ # The only supported special characters are * and ? plus / which also # matches \ on windows. Escaping of these caracters is supported. if el + '\n' == l: - if os.name == 'nt': + if os.altsep: # matching on "/" is not needed for this line log("\nInfo, unnecessary glob: %s (glob)" % el) return True @@ -621,7 +621,7 @@ res += '.*' elif c == '?': res += '.' - elif c == '/' and os.name == 'nt': + elif c == '/' and os.altsep: res += '[/\\\\]' else: res += re.escape(c)