Commit 1f4cc897 authored by Fred Drake's avatar Fred Drake

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

all platforms that offer tempnam().
parent 817ed5a7
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment