Issue2574

classification
Title: test_tarfile failed during CI build
Type: Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jamesmudd, jeff.allen
Priority: Keywords:

Created on 2017-03-22.21:28:06 by jamesmudd, last changed 2018-03-16.07:15:20 by jeff.allen.

Messages
msg11268 (view) Author: James Mudd (jamesmudd) Date: 2017-03-22.21:28:06
In this build job https://travis-ci.org/jythontools/jython/jobs/213994211 test_tarfile failed, this test also seems a bit unreliable maybe it should be investigated?
msg11275 (view) Author: Jeff Allen (jeff.allen) Date: 2017-03-26.07:53:37
I'll add it (again) to the list of shame in regrtest.

I get unclosed file problems on Windows and I can make it fail if I run it enough times:

dist\bin\jython -m test.regrtest test_tarfile test_tarfile test_tarfile test_tarfile test_tarfile test_tarfile test_tarfile test_tarfile
...
test_tarfile
C:\Users\Jeff\Documents\Eclipse\jython-trunk\dist\Lib\test\test_tarfile.py:1667: UserWarning: Failed to remove C:\Users\Jeff\Documents\Eclipse\jython-trunk\$test_1_tmp
  warnings.warn("Failed to remove "+TEMPDIR)
test test_tarfile failed -- Traceback (most recent call last):
  File "C:\Users\Jeff\Documents\Eclipse\jython-trunk\dist\Lib\test\test_tarfile.py", line 203, in test_ignore_zeros
    tar = tarfile.open(tmpname, mode="r", ignore_zeros=True)
  File "C:\Users\Jeff\Documents\Eclipse\jython-trunk\dist\Lib\tarfile.py", line 1665, in open
    raise ReadError("file could not be opened successfully")
ReadError: file could not be opened successfully
msg11806 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-16.07:15:20
See also #2316, and the several skips or special logic related to a different behaviour of umask permissions simulated on Windows. Some of this comes from the CPython version. A clean and consistent solution is partly a question of what we ought to *expect* from Jython on Windows.
History
Date User Action Args
2018-03-16 07:15:20jeff.allensetmessages: + msg11806
2017-03-26 07:53:38jeff.allensetnosy: + jeff.allen
messages: + msg11275
versions: + Jython 2.7
2017-03-22 21:28:06jamesmuddcreate