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.

Author brian.curtin
Recipients brian.curtin, neologix, phlogistonjohn, python-dev, vinay.sajip
Date 2012-05-02.01:55:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335923747.34.0.831492226954.issue14632@psf.upfronthosting.co.za>
In-reply-to
Content
The test for this issue seems to fail about half of the time on Windows.


======================================================================
ERROR: test_race (test.test_logging.HandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python-dev\cpython-main\lib\test\test_logging.py", line 605, in test_race
    h = logging.handlers.WatchedFileHandler(fn, delay=delay)
  File "c:\python-dev\cpython-main\lib\logging\handlers.py", line 421, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "c:\python-dev\cpython-main\lib\logging\__init__.py", line 965, in __init__
    StreamHandler.__init__(self, self._open())
  File "c:\python-dev\cpython-main\lib\logging\__init__.py", line 987, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: 'c:\\users\\brian\\appdata\\local\\temp\\test_logging-3-lxjo5t.log'


I also get this failure when running in the VS2010 branch:

======================================================================
ERROR: test_race (test.test_logging.HandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python-dev\porting\cpython\lib\test\test_logging.py", line 600, in cleanup
    os.unlink(fn)
PermissionError: [Error 32] The process cannot access the file because it is being used by
 another process: 'c:\\users\\brian\\appdata\\local\\temp\\test_logging3-6ujeil.log'
History
Date User Action Args
2012-05-02 01:55:47brian.curtinsetrecipients: + brian.curtin, vinay.sajip, neologix, python-dev, phlogistonjohn
2012-05-02 01:55:47brian.curtinsetmessageid: <1335923747.34.0.831492226954.issue14632@psf.upfronthosting.co.za>
2012-05-02 01:55:46brian.curtinlinkissue14632 messages
2012-05-02 01:55:46brian.curtincreate