From: Zachary Ware Date: Tue, 10 Dec 2013 22:06:46 +0000 (-0600) Subject: Issue #19572: Replace a return that shouldn't have been removed from test_os. X-Git-Tag: v2.7.8~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b06231a9c98210c1b01f209cca5b37c005036a46;p=python Issue #19572: Replace a return that shouldn't have been removed from test_os. This should fix the test_os failure on the AMD64 Windows 7 buildbot. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 3a145f10f9..023ebf44e5 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -134,6 +134,7 @@ class TemporaryFileTests(unittest.TestCase): self.assertEqual(first.args, second.args) else: self.fail("expected os.tmpfile() to raise OSError") + return else: # open() worked, therefore, tmpfile() should work. Close our # dummy file and proceed with the test as normal.