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 ImDisk device driver, but 
when testDown() is run, it fails to remove the newly created junction to the 
test directory.  By leaving the junction in place, when the test runner 
completes it removes the entire temporary test directory containing the 
junction thus removing the Lib test directory!

I suggest that at least changing the tearDown() method to use os.path.lexists() 
to ensure that the junction is removed regardless of its target existing or not.


.. [1] http://www.ltr-data.se/opencode.html/#ImDisk

----------
components: Tests, Windows
files: test_os.patch
keywords: patch
messages: 262577
nosy: haypo, jkloth, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_os fails when run on Windows ramdisk
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file42317/test_os.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26658>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to