]> granicus.if.org Git - python/commitdiff
Issue #19572: Replace a return that shouldn't have been removed from test_os.
authorZachary Ware <zachary.ware@gmail.com>
Tue, 10 Dec 2013 22:06:46 +0000 (16:06 -0600)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 10 Dec 2013 22:06:46 +0000 (16:06 -0600)
This should fix the test_os failure on the AMD64 Windows 7 buildbot.

Lib/test/test_os.py

index 3a145f10f9c200ff30b465d352d2f1f0d7001b9e..023ebf44e58054e613dd86fb32b877b9a1ccaaae 100644 (file)
@@ -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.