Mercurial > hgsubversion
comparison 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 |
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 # wrapped in a try/except because of weirdness in how | 6 # wrapped in a try/except because of weirdness in how |
| 6 # run.py works as compared to nose. | 7 # run.py works as compared to nose. |
| 7 try: | 8 try: |
| 8 import test_util | 9 import test_util |
| 9 except ImportError: | 10 except ImportError: |
| 10 from tests import test_util | 11 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) |
| 12 import test_util | |
| 11 | 13 |
| 12 from mercurial import hg | 14 from mercurial import hg |
| 13 from mercurial import ui | 15 from mercurial import ui |
| 14 | 16 |
| 15 from hgsubversion import svncommands | 17 from hgsubversion import svncommands |
