]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Merge rev 42904 from the trunk.
authorTim Peters <tim.peters@gmail.com>
Sat, 11 Mar 2006 04:55:45 +0000 (04:55 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 11 Mar 2006 04:55:45 +0000 (04:55 +0000)
commit82e8f3843490e7af0ac88e08491d597d64cd18a1
treeed8149838e17879ceb4862f1c376aebd338e86da
parentfea70fe80a60a31f6a32be64eb90c7e38488c7f4
Merge rev 42904 from the trunk.

_hotshot hotshot_profiler():  If write_header() returned
an error code, this let `self` leak.  This is a disaster
on Windows, since `self` already points to a newly-opened
file object, and it was impossible for Python code to
close the thing since the only reference to it was in a
blob of leaked C memory.

test_hotshot test_bad_sys_path():  This new test provoked
the C bug above.  This test passed, but left an open
"@test" file behind, which caused a massive cascade of
bogus test failures in later, unrelated tests on Windows.
Changed the test code to remove the @test file it leaves
behind, which relies on the change above to close that
file first.
Lib/test/test_hotshot.py
Modules/_hotshot.c