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)
Esempio n. 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)
Esempio n. 4
0
 def tearDown(self):
     ImportHooksBaseTestCase.tearDown(self)
     if os.path.exists(TEMP_ZIP):
         os.remove(TEMP_ZIP)
Esempio n. 5
0
 def setUp(self):
     linecache.clearcache()
     zipimport._zip_directory_cache.clear()
     ImportHooksBaseTestCase.setUp(self)
Esempio n. 6
0
 def tearDown(self):
     ImportHooksBaseTestCase.tearDown(self)
     if os.path.exists(TEMP_ZIP):
         os.remove(TEMP_ZIP)