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