diff tests/comprehensive/test_updatemeta.py @ 1042:af84ef787d93

tests: move updatemeta & rebuildmeta tests into comprehensive this decreases normal the test count from 689 to 269, as both iterate over all our fixture, and test_utility_commands already tests both rudimentarily.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 07 Aug 2013 09:57:54 +0200
parents tests/test_updatemeta.py@5bacb9c63e3e
children d741f536f23a
line wrap: on
line diff
copy from tests/test_updatemeta.py
copy to tests/comprehensive/test_updatemeta.py
--- a/tests/test_updatemeta.py
+++ b/tests/comprehensive/test_updatemeta.py
@@ -1,8 +1,15 @@
-import test_util
-
 import os
 import pickle
 import unittest
+
+# wrapped in a try/except because of weirdness in how
+# run.py works as compared to nose.
+try:
+    import test_util
+except ImportError:
+    sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
+    import test_util
+
 import test_rebuildmeta
 
 from mercurial import context