Remove a couple of lines from the test that proved not to be portable to

all platforms that offer tempnam().
This commit is contained in:
Fred Drake 2001-07-17 21:56:01 +00:00
parent 817ed5a750
commit 1f4cc897f8

View file

@ -32,11 +32,9 @@ class TemporaryFileTests(unittest.TestCase):
self.check_tempfile(os.tempnam())
name = os.tempnam(TESTFN)
self.assert_(os.path.dirname(name) == TESTFN)
self.check_tempfile(name)
name = os.tempnam(TESTFN, "pfx")
self.assert_(os.path.dirname(name) == TESTFN)
self.assert_(os.path.basename(name)[:3] == "pfx")
self.check_tempfile(name)