(merge 3.2) Issue #12400: regrtest -W doesn't rerun the tests twice anymore,

but captures the output and displays it on failure instead. regrtest -v doesn't
print the error twice anymore if there is only one error.
This commit is contained in:
Victor Stinner 2011-06-29 13:04:35 +02:00
commit e2185d714b
3 changed files with 30 additions and 11 deletions

View file

@ -40,6 +40,7 @@ class FileTests(unittest.TestCase):
tearDown = setUp
def test_access(self):
self.assertEqual(1,2)
f = os.open(support.TESTFN, os.O_CREAT|os.O_RDWR)
os.close(f)
self.assertTrue(os.access(support.TESTFN, os.W_OK))