# HG changeset patch # User Idan Kamara # Date 2011-05-07 17:56:43 # Node ID 7352ff757a480931f8367bb0ca035c98270a6bc4 # Parent 23cd7eeff678063d0a7de866d656e36cdbbd5e4c run-tests: compare absolute paths in _checkhglib diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -902,7 +902,7 @@ def _checkhglib(verb): the one we expect it to be. If not, print a warning to stderr.""" expecthg = os.path.join(PYTHONDIR, 'mercurial') actualhg = _gethgpath() - if actualhg != expecthg: + if os.path.abspath(actualhg) != os.path.abspath(expecthg): sys.stderr.write('warning: %s with unexpected mercurial lib: %s\n' ' (expected %s)\n' % (verb, actualhg, expecthg))