Path.resolve() fails on complex symlinks
Path.resolve() fails on such example:
mkdir testdir ln -s . testdir/0 ln -s 0/0 testdir/1 ln -s 1/1 testdir/2
and then resolve "testdir/2".
The script which tests pathlib for this and more complex examples is attached.
http://bugs.python.org/issue6975 has a patch for posixpath.realpath() which passes the test.