[Python-checkins] cpython (2.7): Issue #19572: Replace a return that shouldn't have been removed from test_os.

zach.ware python-checkins at python.org
Tue Dec 10 23:07:00 CET 2013


http://hg.python.org/cpython/rev/ca9bca7aecda
changeset:   87891:ca9bca7aecda
branch:      2.7
parent:      87888:21a9abf6d428
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Tue Dec 10 16:06:46 2013 -0600
summary:
  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.

files:
  Lib/test/test_os.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -134,6 +134,7 @@
                         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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list