From 8bec48316b1ffb4ea153e78b9119d7e77b98f3eb Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 22 Nov 2002 20:13:43 +0000 Subject: Two bugs: - assertRaises() wasn't being called correctly - test_warning() no longer applies --- Lib/test/test_tempfile.py | 14 +++++++------- 1 file 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) -- cgit v0.12