Mercurial > hgsubversion
diff tests/comprehensive/test_verify.py @ 766:124cd25de4ef
tests: fix running the comprehensive tests using nose.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Mon, 29 Nov 2010 11:53:57 +0100 |
parents | 1fd3cfa47c5e |
children | 312b37bc5e20 |
line wrap: on
line diff
--- a/tests/comprehensive/test_verify.py +++ b/tests/comprehensive/test_verify.py @@ -1,5 +1,6 @@ import os import pickle +import sys import unittest # wrapped in a try/except because of weirdness in how @@ -7,7 +8,8 @@ import unittest try: import test_util except ImportError: - from tests import test_util + sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) + import test_util from mercurial import hg from mercurial import ui