Message273259
| Author |
martin.panter |
| Recipients |
Elena.Oat, ezio.melotti, gregory.p.smith, martin.panter, pitrou, python-dev, vstinner |
| Date |
2016年08月21日.02:22:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1471746126.43.0.334719959525.issue14853@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Long story short: Don’t change Python 2, and just restore the seek(-1) test in 3.
I agree in general it is better to skip a test than completely remove it. However, in Python 2, the test that Victor proposes to restore is redundant with test_file2k. Sys.stdin is always a Python-2-style file object, which for some reason or other can allow seek(-1).
Also, this bug was opened for Python 2, with the comment "works fine in 3.2". I do not understand why the test was removed from Python 3.
For the Python 3 version of the test, the OSF/1 skip should not be necessary. Also, the truncate() test is probably redundant with the test_optional_abilities() method that I added in revision dc9e5f09ac0c (Issue 22854). |
|