summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-11-22 20:13:43 (GMT)
committerFred Drake <fdrake@acm.org>2002-11-22 20:13:43 (GMT)
commit8bec48316b1ffb4ea153e78b9119d7e77b98f3eb (patch)
treeabb09c799402f6256aaf543fe9d50bfd23b73972 /Lib/test/test_tempfile.py
parent78e35f931128d017d5955841eac8c397ff32595c (diff)
downloadcpython-8bec48316b1ffb4ea153e78b9119d7e77b98f3eb.zip
cpython-8bec48316b1ffb4ea153e78b9119d7e77b98f3eb.tar.gz
cpython-8bec48316b1ffb4ea153e78b9119d7e77b98f3eb.tar.bz2
Two bugs:
- assertRaises() wasn't being called correctly - test_warning() no longer applies
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index cb95724..901a07c 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -524,13 +524,13 @@ class test_mktemp(TC):
for i in extant:
extant[i] = self.do_create(pre="aa")
- def test_warning(self):
- # mktemp issues a warning when used
- warnings.filterwarnings("error",
- category=RuntimeWarning,
- message="mktemp")
- self.assertRaises(RuntimeWarning,
- tempfile.mktemp, (), { 'dir': self.dir })
+## def test_warning(self):
+## # mktemp issues a warning when used
+## warnings.filterwarnings("error",
+## category=RuntimeWarning,
+## message="mktemp")
+## self.assertRaises(RuntimeWarning,
+## tempfile.mktemp, dir=self.dir)
test_classes.append(test_mktemp)