Skip to content

Commit 0a40580

Browse files
[3.12] gh-117879: Fix test_httpservers for the build with profiling (GH-117932) (GH-117969)
(cherry picked from commit 8429b45) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 95982c9 commit 0a40580

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_httpservers.py

+3
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ def tearDown(self):
808808
os.rmdir(self.cgi_dir_in_sub_dir)
809809
os.rmdir(self.sub_dir_2)
810810
os.rmdir(self.sub_dir_1)
811+
# The 'gmon.out' file can be written in the current working
812+
# directory if C-level code profiling with gprof is enabled.
813+
os_helper.unlink(os.path.join(self.parent_dir, 'gmon.out'))
811814
os.rmdir(self.parent_dir)
812815
finally:
813816
BaseTestCase.tearDown(self)

0 commit comments

Comments
 (0)