[issue26658] test_os fails when run on Windows ramdisk

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: os.stat() was redesigned in issue 37834, which entailed extensive updates across the standard library to improve support for Windows reparse points. As part of this, Win32JunctionTests.tearDown() was changed to use a more reliable lexists() check, which resolves

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Eryk Sun
Eryk Sun added the comment: I don't disagree with using os.path.lexists. However, I think it should also use a temporary target directory. Also, if it's possible to fix the behavior of os.stat when GetFinalPathNameByHandle fails (considering we already have a handle for the target), then that'

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I'm fine with the tests for CreateFunction failing for an ImDisk virtual drive, however something needs to be changed with the test to not remove the test directory on tearDown(). Changing it to use a temporary directory to link against is a workaround, but sti

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Eryk Sun
Eryk Sun added the comment: I see now. It's not a problem with the junction. In the stat implementation, after verifying that the directory or file is a reparse point, it opens it again without FILE_FLAG_OPEN_REPARSE_POINT, in order to open the target instead of the link. I don't understand wh

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: To reproduce: P:\python-default>PCBuild\amd64\python_d.exe Python 3.6.0a0 (default:708beeb65026, Mar 30 2016, 08:50:27) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os, _winapi >>> _winapi.

[issue26658] test_os fails when run on Windows ramdisk

2016-03-28 Thread Eryk Sun
Eryk Sun added the comment: > I'm inclined to believe that this is a bug in the ImDisk device driver Junctions, and other filesystem reparse points, are implemented by volume devices, not disk devices. NTFS and ReFS support reparse points, but FAT, FAT32, and exFAT do not. Does the current fil

[issue26658] test_os fails when run on Windows ramdisk

2016-03-28 Thread STINNER Victor
STINNER Victor added the comment: Maybe the junction must not include Lib/ but only temporary directories? I didn't read the tedt yet. -- ___ Python tracker ___ _

[issue26658] test_os fails when run on Windows ramdisk

2016-03-28 Thread Jeremy Kloth
New submission from Jeremy Kloth: The Win32JunctionTests class fails when the test suite is run on an ImDisk[1]_ virtual disk. The junctions are created successfully, however os.stat() fails on them (winerror 123). os.lstat() does succeed. I'm inclined to believe that this is a bug in the Im