Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.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 | 58f397523604 |
children | 86d124a8768e |
comparison
equal
deleted
inserted
replaced
765:62c9e6bd2ca7 | 766:124cd25de4ef |
---|---|
1 import os | 1 import os |
2 import pickle | 2 import pickle |
3 import sys | |
3 import unittest | 4 import unittest |
4 | 5 |
5 from mercurial import hg | 6 from mercurial import hg |
6 from mercurial import ui | 7 from mercurial import ui |
7 | 8 |
8 # wrapped in a try/except because of weirdness in how | 9 # wrapped in a try/except because of weirdness in how |
9 # run.py works as compared to nose. | 10 # run.py works as compared to nose. |
10 try: | 11 try: |
11 import test_util | 12 import test_util |
12 except ImportError: | 13 except ImportError: |
13 from tests import test_util | 14 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) |
15 import test_util | |
14 | 16 |
15 from hgsubversion import wrappers | 17 from hgsubversion import wrappers |
16 | 18 |
17 | 19 |
18 def _do_case(self, name, layout): | 20 def _do_case(self, name, layout): |