Message205442
| Author |
serhiy.storchaka |
| Recipients |
pitrou, serhiy.storchaka, vajrasky |
| Date |
2013年12月07日.08:04:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1386403455.85.0.616932474845.issue19887@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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())" |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年12月07日 08:04:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vajrasky |
| 2013年12月07日 08:04:15 | serhiy.storchaka | set | messageid: <1386403455.85.0.616932474845.issue19887@psf.upfronthosting.co.za> |
| 2013年12月07日 08:04:15 | serhiy.storchaka | link | issue19887 messages |
| 2013年12月07日 08:04:15 | serhiy.storchaka | create |
|