Author ostermana
Recipients ostermana
Date 2021-02-04.18:02:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612461758.14.0.954062785063.issue43128@roundup.psfhosted.org>
In-reply-to
Content
While compiling 3.9.1 on CentOS 8, test_httpservers.py throws multiple errors in the vein of "OSError: [Errno 39] Directory not empty: '/tmp/tmp70ip355o'" from line 707, in teardown. Examining the directories I see that they all contain only a gmon.out. Adding this code to teardown() before "os.rmdir(self.parent_dir)" seems to resolve the issue and should not introduce any issues on other platforms:

if os.path.isfile(pathlib.Path(self.parent_dir).joinpath('gmon.out')):
  os.remove(pathlib.Path(self.parent_dir).joinpath('gmon.out'))
History
Date User Action Args
2021-02-04 18:02:38ostermanasetrecipients: + ostermana
2021-02-04 18:02:38ostermanasetmessageid: <1612461758.14.0.954062785063.issue43128@roundup.psfhosted.org>
2021-02-04 18:02:38ostermanalinkissue43128 messages
2021-02-04 18:02:38ostermanacreate