# HG changeset patch # User Mads Kiilerich # Date 2012-04-27 23:22:47 # Node ID dd194e5df4c120336cf8962448beb8b358811544 # Parent 5068d0974278056d0d6d13a78391911ca2a96f4e tests: don't require 'hg' without extension on windows Hackable uses hg.exe instead. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -209,7 +209,7 @@ def parseargs(): 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