Message138256
issue12084_v2.diff doesn't patch os.lstat(bytes): os.lstat(bytes) should call win32_lstat() (which is removed by this patch) instead of stat().
test_os doesn't test os.stat()/os.lstat() with byte filenames. You can for example replace Win32SymlinkTests.check_stat() method by:
def check_stat(self, link, target):
self.assertEqual(os.stat(link), os.stat(target))
self.assertNotEqual(os.lstat(link), os.stat(link))
bytes_link = os.fsencode(link)
self.assertEqual(os.stat(bytes_link), os.stat(target))
self.assertNotEqual(os.lstat(bytes_link), os.stat(bytes_link)) |
|
Date |
User |
Action |
Args |
2011-06-13 15:18:10 | vstinner | set | recipients:
+ vstinner, loewis, georg.brandl, jaraco, ocean-city, eric.smith, tim.golden, nadeem.vawda, brian.curtin, santoso.wijaya |
2011-06-13 15:18:10 | vstinner | set | messageid: <1307978290.01.0.368037309096.issue12084@psf.upfronthosting.co.za> |
2011-06-13 15:18:09 | vstinner | link | issue12084 messages |
2011-06-13 15:18:09 | vstinner | create | |
|