summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-17 09:50:07 (GMT)
committerGitHub <noreply@github.com>2024-04-17 09:50:07 (GMT)
commit8429b4565deaef7a86bffc0ce58bc0eab1d7ae48 (patch)
tree3b9deb85d52390e219cc2f39db4e04af987f2cc1
parent8515fd79fef1ac16d7848cec5ec1797294cb5366 (diff)
downloadcpython-8429b4565deaef7a86bffc0ce58bc0eab1d7ae48.zip
cpython-8429b4565deaef7a86bffc0ce58bc0eab1d7ae48.tar.gz
cpython-8429b4565deaef7a86bffc0ce58bc0eab1d7ae48.tar.bz2
gh-117879: Fix test_httpservers for the build with profiling (GH-117932)
-rw-r--r--Lib/test/test_httpservers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 7c0edfe..1c370dc 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -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)