This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: test_logging failures on Snow Leopard
Type: behavior Stage: needs patch
Components: Library (Lib), Tests Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: test_logging test_race failed with PermissionError
View: 19690
Assigned To: Nosy List: pitrou, r.david.murray, vinay.sajip
Priority: normal Keywords:

Created on 2013-12-03 10:04 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg205098 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-12-03 10:04
"test_race" in test_logging fails intermittently on the Snow Leopard buildbot:

ERROR: test_race (test.test_logging.HandlerTest)
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/", line 613, in test_race
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/", line 835, in handle
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/", line 468, in emit = self._open()
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/", line 1005, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 1] Operation not permitted: '/tmp/test_logging-3-0my8mx_f.log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/", line 616, in test_race
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/", line 990, in close
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/", line 937, in flush
ValueError: I/O operation on closed file.
msg205103 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2013-12-03 11:41
I think this is the same as #19690.
Date User Action Args
2022-04-11 14:57:54adminsetgithub: 64073
2013-12-03 11:41:51vinay.sajipsetstatus: open -> closed
superseder: test_logging test_race failed with PermissionError
resolution: duplicate
messages: + msg205103
2013-12-03 10:04:56pitroucreate