Kaydet (Commit) 8bec4831 authored tarafından Fred Drake's avatar Fred Drake

Two bugs:

- assertRaises() wasn't being called correctly
- test_warning() no longer applies
üst 78e35f93
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment