0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 12:59:38 +01:00

gh-117879: Fix test_httpservers for the build with profiling (GH-117932)

This commit is contained in:
Serhiy Storchaka 2024-04-17 12:50:07 +03:00 committed by GitHub
parent 8515fd79fe
commit 8429b4565d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -815,6 +815,9 @@ class CGIHTTPServerTestCase(BaseTestCase):
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)