Kaydet (Commit) 3c54ea6a authored tarafından Nick Coghlan's avatar Nick Coghlan

Actually finish the tests for r87182

üst 1d5d6856
......@@ -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
......
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