[issue9999] test_shutil cross-file-system tests are fragile (may not test what they pruport to test)

Jonathan Niehof report at bugs.python.org
Thu Sep 30 19:01:59 CEST 2010


Jonathan Niehof <jniehof at lanl.gov> added the comment:

Might it make sense to skip-decorate those tests which require cross-filesystem? Put a test above the TestMove definition which compares tempfile.gettempdir() and os.path.dirname(__file__).

I don't know of an out-of-the-box function to see if two paths are on the same filesystem; I suppose one approach would be to walk up the directory tree of each, checking ismount. (Looks like somebody's tried it: http://stackoverflow.com/questions/1138383/python-get-mount-point-on-windows-or-linux)

----------
nosy: +jniehof

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9999>
_______________________________________


More information about the Python-bugs-list mailing list