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 pitrou
Recipients draghuram, ocean-city, pitrou
Date 2008-08-18.14:28:15
SpamBayes Score 0.0010798082
Marked as misclassified No
Message-id <1219069696.51.0.644575091632.issue3580@psf.upfronthosting.co.za>
In-reply-to
Content
According to the aforementioned bug report, we should also add a test
for e.winerror == 5. Chances are that other cases will arise one day or
another...

Since the purpose of the test is, allegedly, to "Verify that an open
file can be stat'ed", it may be simpler to create and open a file
ourselves (test_support.TESTFN being an obvious candidate :-)), and
check that it can be stat'ed. Expecting to be able to access
C:\pagefile.sys sounds as "right" as doing the same with, say,
/etc/passwd under Linux.

(and, incidentally, creating the file ourselves means the test will stop
being Windows-specific)
History
Date User Action Args
2008-08-18 14:28:16pitrousetrecipients: + pitrou, ocean-city, draghuram
2008-08-18 14:28:16pitrousetmessageid: <1219069696.51.0.644575091632.issue3580@psf.upfronthosting.co.za>
2008-08-18 14:28:15pitroulinkissue3580 messages
2008-08-18 14:28:15pitroucreate