From: Nick Coghlan Date: Mon, 13 Dec 2010 03:02:43 +0000 (+0000) Subject: Actually finish the tests for r87182 X-Git-Tag: v3.2b2~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c54ea6abae67e776d8c29921b1790dd50644c20;p=python Actually finish the tests for r87182 --- diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index eebf78f6fd..536e1ca61e 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