mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
817ed5a750
commit
1f4cc897f8
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue