summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-17 07:36:42 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-17 07:36:42 -0400
commit22bd5ea251bcc41718b43fba1ae718985cf28003 (patch)
tree0742378ce9211f98dbac38fe803eb0c4dc7f079f /tests/test_api.py
parente55f5bf9452fd03424b982196424666aeb822276 (diff)
downloadpython-coveragepy-git-22bd5ea251bcc41718b43fba1ae718985cf28003.tar.gz
Make FarmTestCase a real TestCase
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 25d104c4..40054cc5 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -303,11 +303,12 @@ class UsingModulesMixin(object):
def setUp(self):
super(UsingModulesMixin, self).setUp()
- # Parent class saves and restores sys.path, we can just modify it.
+
old_dir = os.getcwd()
os.chdir(self.nice_file(os.path.dirname(__file__), 'modules'))
self.addCleanup(os.chdir, old_dir)
+ # Parent class saves and restores sys.path, we can just modify it.
sys.path.append(".")
sys.path.append("../moremodules")