Message71333
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) |
|
Date |
User |
Action |
Args |
2008-08-18 14:28:16 | pitrou | set | recipients:
+ pitrou, ocean-city, draghuram |
2008-08-18 14:28:16 | pitrou | set | messageid: <1219069696.51.0.644575091632.issue3580@psf.upfronthosting.co.za> |
2008-08-18 14:28:15 | pitrou | link | issue3580 messages |
2008-08-18 14:28:15 | pitrou | create | |
|