Mercurial > hg > hg-git
changeset 272:efd9bfad6c4b
fix running unit tests with the test runner
author | Abderrahim Kitouni <a.kitouni@gmail.com> |
---|---|
date | Mon, 23 Nov 2009 19:10:32 +0100 |
parents | d32590df65ef |
children | e331d19fd0bf |
files | tests/test-topo-sort.py tests/test-url-parsing.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-topo-sort.py +++ b/tests/test-topo-sort.py @@ -1,6 +1,6 @@ -import random, sys +import random, os, sys -sys.path.append('../') +sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) from hggit import toposort
--- a/tests/test-url-parsing.py +++ b/tests/test-url-parsing.py @@ -1,7 +1,7 @@ -import sys, tempfile, unittest, shutil +import os, sys, tempfile, unittest, shutil from mercurial import ui, hg, commands -sys.path.append('../') +sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) from hggit.git_handler import GitHandler