diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-04-17 10:15:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 10:15:22 (GMT) |
commit | 0a40580b854c74f57b9784fa5bccc1e897e437d2 (patch) | |
tree | f49390ad880ae0f8b5c50657d843063fd28325ac | |
parent | 95982c983fa61a1967c81f4acd16e06b2d95a550 (diff) | |
download | cpython-0a40580b854c74f57b9784fa5bccc1e897e437d2.zip cpython-0a40580b854c74f57b9784fa5bccc1e897e437d2.tar.gz cpython-0a40580b854c74f57b9784fa5bccc1e897e437d2.tar.bz2 |
[3.12] gh-117879: Fix test_httpservers for the build with profiling (GH-117932) (GH-117969)
(cherry picked from commit 8429b4565deaef7a86bffc0ce58bc0eab1d7ae48)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r-- | Lib/test/test_httpservers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 15f9447..88d06fe 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -808,6 +808,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) |