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 2017-03-26.07:53:38 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
History
Date User Action Args
2017-03-26 07:53:38jeff.allensetnosy: + jeff.allen
messages: + msg11275
versions: + Jython 2.7
2017-03-22 21:28:06jamesmuddcreate