Lines Matching defs:sys
1 import sys
65 self.path = sys.path[:]
66 self.meta_path = sys.meta_path[:]
67 self.path_hooks = sys.path_hooks[:]
68 sys.path_importer_cache.clear()
72 sys.path[:] = self.path
73 sys.meta_path[:] = self.meta_path
74 sys.path_hooks[:] = self.path_hooks
75 sys.path_importer_cache.clear()
134 sys.path.insert(0, TEMP_ZIP)
166 if "zlib" in sys.builtin_module_names:
168 if "zlib" in sys.modules:
169 del sys.modules["zlib"]
316 sys.path.insert(0, zip1)
317 sys.path.insert(0, zip2)
392 sys.path.insert(0, zip1)
393 sys.path.insert(0, zip2)
498 self.assertTrue(mod_name in sys.modules)
613 self.assertTrue(mod_name in sys.modules)
654 sys.path.insert(0, TEMP_ZIP)