tests/run-tests.py
branchstable
changeset 1065 c1d229864cd3
parent 1059 1745fd2dd308
child 1068 459c0537273b
--- a/tests/run-tests.py	Wed Apr 04 15:59:56 2012 +0200
+++ b/tests/run-tests.py	Sat Apr 28 01:22:47 2012 +0200
@@ -209,7 +209,7 @@
     if options.local:
         testdir = os.path.dirname(os.path.realpath(sys.argv[0]))
         hgbin = os.path.join(os.path.dirname(testdir), 'hg')
-        if not os.access(hgbin, os.X_OK):
+        if os.name != 'nt' and not os.access(hgbin, os.X_OK):
             parser.error('--local specified, but %r not found or not executable'
                          % hgbin)
         options.with_hg = hgbin