From b06231a9c98210c1b01f209cca5b37c005036a46 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 10 Dec 2013 16:06:46 -0600 Subject: [PATCH] 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. --- Lib/test/test_os.py | 1 + 1 file changed, 1 insertion(+) 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. -- 2.50.1