Mailing List Archive

gh-117879: Fix test_httpservers for the build with profiling (GH-117932)
https://github.com/python/cpython/commit/8429b4565deaef7a86bffc0ce58bc0eab1d7ae48
commit: 8429b4565deaef7a86bffc0ce58bc0eab1d7ae48
branch: main
author: Serhiy Storchaka <storchaka@gmail.com>
committer: serhiy-storchaka <storchaka@gmail.com>
date: 2024-04-17T12:50:07+03:00
summary:

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

files:
M Lib/test/test_httpservers.py

diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 7c0edfea4f9778..1c370dcafa9fea 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -815,6 +815,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)

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com