mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Two bugs:
- assertRaises() wasn't being called correctly - test_warning() no longer applies
This commit is contained in:
parent
78e35f9311
commit
8bec48316b
1 changed files with 7 additions and 7 deletions
|
@ -524,13 +524,13 @@ class test_mktemp(TC):
|
||||||
for i in extant:
|
for i in extant:
|
||||||
extant[i] = self.do_create(pre="aa")
|
extant[i] = self.do_create(pre="aa")
|
||||||
|
|
||||||
def test_warning(self):
|
## def test_warning(self):
|
||||||
# mktemp issues a warning when used
|
## # mktemp issues a warning when used
|
||||||
warnings.filterwarnings("error",
|
## warnings.filterwarnings("error",
|
||||||
category=RuntimeWarning,
|
## category=RuntimeWarning,
|
||||||
message="mktemp")
|
## message="mktemp")
|
||||||
self.assertRaises(RuntimeWarning,
|
## self.assertRaises(RuntimeWarning,
|
||||||
tempfile.mktemp, (), { 'dir': self.dir })
|
## tempfile.mktemp, dir=self.dir)
|
||||||
|
|
||||||
test_classes.append(test_mktemp)
|
test_classes.append(test_mktemp)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue