cleaned up Jack's Mac OS9 changes

This commit is contained in:
Just van Rossum 2003-01-09 22:27:10 +00:00
parent 312141c51f
commit 6706c4d5fd
1 changed files with 1 additions and 5 deletions

View File

@ -38,10 +38,6 @@ TESTMOD = "ziptestmodule"
TESTPACK = "ziptestpackage" TESTPACK = "ziptestpackage"
TESTPACK2 = "ziptestpackage2" TESTPACK2 = "ziptestpackage2"
TEMP_ZIP = os.path.abspath("junk95142.zip") TEMP_ZIP = os.path.abspath("junk95142.zip")
if sys.platform == 'mac':
CURDIRPREFIX=':'
else:
CURDIRPREFIX=''
class UncompressedZipImportTestCase(ImportHooksBaseTestCase): class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
@ -68,7 +64,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
if expected_ext: if expected_ext:
file = mod.get_file() file = mod.get_file()
self.assertEquals(file, os.path.join(TEMP_ZIP, self.assertEquals(file, os.path.join(TEMP_ZIP,
CURDIRPREFIX + os.sep.join(modules) + expected_ext)) *modules) + expected_ext)
finally: finally:
z.close() z.close()
os.remove(TEMP_ZIP) os.remove(TEMP_ZIP)