[Python-checkins] r85706 - python/branches/pep-382/Lib/test/test_zipimport.py

barry.warsaw python-checkins at python.org
Tue Oct 19 01:24:57 CEST 2010


Author: barry.warsaw
Date: Tue Oct 19 01:24:57 2010
New Revision: 85706

Log:
Clean up sys.path after each test.


Modified:
   python/branches/pep-382/Lib/test/test_zipimport.py

Modified: python/branches/pep-382/Lib/test/test_zipimport.py
==============================================================================
--- python/branches/pep-382/Lib/test/test_zipimport.py	(original)
+++ python/branches/pep-382/Lib/test/test_zipimport.py	Tue Oct 19 01:24:57 2010
@@ -100,6 +100,8 @@
                 self.assertEquals(file, os.path.join(TEMP_ZIP,
                                   *modules) + expected_ext)
         finally:
+            if sys.path[0] == TEMP_ZIP:
+                del sys.path[0]
             z.close()
             os.remove(TEMP_ZIP)
 


More information about the Python-checkins mailing list