Serhiy Storchaka added the comment:

How the test can be simpler? It is already simple.

You ca use pathlib_resolve_test.py but replace `os.symlink('.', 'testdir/0')` 
by `os.symlink(os.path.abspath('testdir'), 'testdir/0')`. Or use following 
shell commands:

mkdir testdir
for i in $(seq 100); do ln -s $((i-1))/$((i-1)) testdir/$i; done
ln -s "$(pwd)/testdir" testdir/0

./python -c "import pathlib; print(pathlib.Path('testdir/100').resolve())"

----------

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

Reply via email to