Commits

Kumar McMillan committed a9b21ef

Fixes relative imports and path to support dir

  • Participants
  • Parent commits 1019fd0

Comments (0)

Files changed (4)

File functional_tests/test_multiprocessing/test_class.py

 import os
 
-from . import support, MPTestBase
+from test_multiprocessing import MPTestBase
 
 
 #test case for #462
 class TestClassFixture(MPTestBase):
-    suitepath = os.path.join(support, 'class.py')
+    suitepath = os.path.join(os.path.dirname(__file__), 'support', 'class.py')
 
     def runTest(self):
         assert str(self.output).strip().endswith('OK')

File functional_tests/test_multiprocessing/test_concurrent_shared.py

 import os
 
-from . import support, MPTestBase
+from test_multiprocessing import MPTestBase
 
 class TestConcurrentShared(MPTestBase):
     processes = 2
-    suitepath = os.path.join(support, 'concurrent_shared')
+    suitepath = os.path.join(os.path.dirname(__file__), 'support',
+                             'concurrent_shared')
 
     def runTest(self):
         assert 'Ran 2 tests in 1.' in self.output, "make sure two tests use 1.x seconds (no more than 2 seconsd)"

File functional_tests/test_multiprocessing/test_nameerror.py

 import os
 
-from . import support, MPTestBase
+from test_multiprocessing import support, MPTestBase
 
 class TestMPNameError(MPTestBase):
     processes = 2
-    suitepath = os.path.join(support, 'nameerror.py')
+    suitepath = os.path.join(os.path.dirname(__file__), 'support', 'nameerror.py')
 
     def runTest(self):
         print str(self.output)

File functional_tests/test_multiprocessing/test_process_timeout.py

 import os
 
-from . import support, MPTestBase
+from test_multiprocessing import MPTestBase
 
 class TestMPTimeout(MPTestBase):
     args = ['--process-timeout=1']
-    suitepath = os.path.join(support, 'timeout.py')
+    suitepath = os.path.join(os.path.dirname(__file__), 'support', 'timeout.py')
 
     def runTest(self):
         assert "TimedOutException: 'timeout.test_timeout'" in self.output