From: Fred Drake Date: Fri, 22 Nov 2002 20:13:43 +0000 (+0000) Subject: Two bugs: X-Git-Tag: v2.3c1~3295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bec48316b1ffb4ea153e78b9119d7e77b98f3eb;p=thirdparty%2FPython%2Fcpython.git Two bugs: - assertRaises() wasn't being called correctly - test_warning() no longer applies --- diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index cb957245a191..901a07cfde56 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)