summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2010-12-13 03:02:43 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2010-12-13 03:02:43 (GMT)
commit3c54ea6abae67e776d8c29921b1790dd50644c20 (patch)
tree0f0ea8bba57f3cfd53fc1a679260b1ea96bcf4e4 /Lib/test
parent1d5d6856e2c605a8bcb589f3563ddfc8203febe6 (diff)
downloadcpython-3c54ea6abae67e776d8c29921b1790dd50644c20.zip
cpython-3c54ea6abae67e776d8c29921b1790dd50644c20.tar.gz
cpython-3c54ea6abae67e776d8c29921b1790dd50644c20.tar.bz2
Actually finish the tests for r87182
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_tempfile.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index eebf78f..536e1ca 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -928,9 +928,11 @@ class test_TemporaryDirectory(TC):
def test_mkdtemp_failure(self):
# Check no additional exception if mkdtemp fails
# Previously would raise AttributeError instead
- # (noted as part of Issue #10888)
- #with self.assertRaises(os.error):
- tempfile.TemporaryDirectory(prefix="[]<>?*!:")
+ # (noted as part of Issue #10188)
+ with tempfile.TemporaryDirectory() as nonexistent:
+ pass
+ with self.assertRaises(os.error):
+ tempfile.TemporaryDirectory(dir=nonexistent)
def test_explicit_cleanup(self):
# A TemporaryDirectory is deleted when cleaned up