mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
[3.12] gh-117879: Fix test_httpservers for the build with profiling (GH-117932) (GH-117969)
(cherry picked from commit 8429b4565d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
95982c983f
commit
0a40580b85
1 changed files with 3 additions and 0 deletions
|
|
@ -808,6 +808,9 @@ def tearDown(self):
|
|||
os.rmdir(self.cgi_dir_in_sub_dir)
|
||||
os.rmdir(self.sub_dir_2)
|
||||
os.rmdir(self.sub_dir_1)
|
||||
# The 'gmon.out' file can be written in the current working
|
||||
# directory if C-level code profiling with gprof is enabled.
|
||||
os_helper.unlink(os.path.join(self.parent_dir, 'gmon.out'))
|
||||
os.rmdir(self.parent_dir)
|
||||
finally:
|
||||
BaseTestCase.tearDown(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue