]> granicus.if.org Git - python/commitdiff
Remove a couple of lines from the test that proved not to be portable to
authorFred Drake <fdrake@acm.org>
Tue, 17 Jul 2001 21:56:01 +0000 (21:56 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 17 Jul 2001 21:56:01 +0000 (21:56 +0000)
all platforms that offer tempnam().

Lib/test/test_os.py

index 59a2af6317f4ac2a6af8e21e68dfead721b55977..c1889e164e9446ac0deecf144a32869024fb6b1d 100644 (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)