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