summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
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")