def setUp(self):
     # We're reusing the zip archive path, so we must clear the
     # cached directory info.
     zipimport._zip_directory_cache.clear()
     ImportHooksBaseTestCase.setUp(self)
 def setUp(self):
     linecache.clearcache()
     zipimport._zip_directory_cache.clear()
     ImportHooksBaseTestCase.setUp(self)
Exemple #3
0
 def setUp(self):
     # We're reusing the zip archive path, so we must clear the
     # cached directory info and linecache
     linecache.clearcache()
     zipimport._zip_directory_cache.clear()
     ImportHooksBaseTestCase.setUp(self)
 def tearDown(self):
     ImportHooksBaseTestCase.tearDown(self)
     if os.path.exists(TEMP_ZIP):
         os.remove(TEMP_ZIP)
 def setUp(self):
     linecache.clearcache()
     zipimport._zip_directory_cache.clear()
     ImportHooksBaseTestCase.setUp(self)
Exemple #6
0
 def tearDown(self):
     ImportHooksBaseTestCase.tearDown(self)
     if os.path.exists(TEMP_ZIP):
         os.remove(TEMP_ZIP)