From 22bd5ea251bcc41718b43fba1ae718985cf28003 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 17 Aug 2015 07:36:42 -0400 Subject: Make FarmTestCase a real TestCase --- tests/test_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_api.py') 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") -- cgit v1.2.1