summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-25 23:18:51 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-25 23:18:51 (GMT)
commit687b9c0779d81714d8ad22157e8e0f5dfc88d904 (patch)
treee0d57e898a6ff10393d68862649d5538a328d71a /Lib/test/test_posix.py
parentedbcc1332f9d8e09fc7f511b6122c06b8dbd49c5 (diff)
downloadcpython-687b9c0779d81714d8ad22157e8e0f5dfc88d904.zip
cpython-687b9c0779d81714d8ad22157e8e0f5dfc88d904.tar.gz
cpython-687b9c0779d81714d8ad22157e8e0f5dfc88d904.tar.bz2
Patch 1318 by Christian Heimes: remove os.tmpnam(), os.tempnam(),
and os.tmpfile().
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 22ec748..3569453 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -29,7 +29,7 @@ class PosixTester(unittest.TestCase):
# test posix functions which take no arguments and have
# no side-effects which we need to cleanup (e.g., fork, wait, abort)
NO_ARG_FUNCTIONS = [ "ctermid", "getcwd", "getcwdu", "uname",
- "times", "getloadavg", "tmpnam",
+ "times", "getloadavg",
"getegid", "geteuid", "getgid", "getgroups",
"getpid", "getpgrp", "getppid", "getuid",
]
@@ -171,17 +171,6 @@ class PosixTester(unittest.TestCase):
os.close(reader)
os.close(writer)
- def test_tempnam(self):
- if hasattr(posix, 'tempnam'):
- self.assert_(posix.tempnam())
- self.assert_(posix.tempnam(os.curdir))
- self.assert_(posix.tempnam(os.curdir, 'blah'))
-
- def test_tmpfile(self):
- if hasattr(posix, 'tmpfile'):
- fp = posix.tmpfile()
- fp.close()
-
def test_utime(self):
if hasattr(posix, 'utime'):
now = time.time()