https://github.com/python/cpython/commit/0a40580b854c74f57b9784fa5bccc1e897e437d2 commit: 0a40580b854c74f57b9784fa5bccc1e897e437d2 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-04-17T10:15:22Z summary:
[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 <[email protected]> files: M Lib/test/test_httpservers.py diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 15f944734c608e..88d06fe04fb726 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -808,6 +808,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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
