dtcaciuc  committed 41c926f

Adding a currently failing test verifying correctness of standard library module imports

  • Participants
  • Parent commits a497655

Comments (0)

Files changed (2)

File tests/

+import unittest2 as unittest
+import sys
+import imp
+from importgraph import find_module
+sys.path.insert(0, "tests/local_sys")
+class FindModuleTests(unittest.TestCase):
+    def find_sys_test(self):
+        """Import standard library modules independent of search path order."""
+        path = find_module("sys")
+        self.assertNotIn("local_sys", path, "Found local 'sys' instead of system one")

File tests/local_sys/

+raise Exception("Local sys module")