]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Two bugs:
authorFred Drake <fdrake@acm.org>
Fri, 22 Nov 2002 20:13:43 +0000 (20:13 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 22 Nov 2002 20:13:43 +0000 (20:13 +0000)
- assertRaises() wasn't being called correctly
- test_warning() no longer applies

Lib/test/test_tempfile.py

index cb957245a191cbc7da550573cda5814554940cd4..901a07cfde562c0e14342e73efa2c78ce14d91a9 100644 (file)
@@ -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)