Commits

Dan Villiom Podlaski Christiansen committed 124cd25

tests: fix running the comprehensive tests using nose.

Comments (0)

Files changed (2)

tests/comprehensive/test_stupid_pull.py

 import os
 import pickle
+import sys
 import unittest
 
 from mercurial import hg
 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 hgsubversion import wrappers
 

tests/comprehensive/test_verify.py

 import os
 import pickle
+import sys
 import unittest
 
 # wrapped in a try/except because of weirdness in how
 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