classification
Title: test_zipimport failure
Type: Stage: resolved
Components: Tests Versions: Python 3.10
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords:

Created on 2020-11-01 13:44 by vstinner, last changed 2020-11-16 17:04 by vstinner. This issue is now closed.

Messages (3)
msg380135 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-01 13:44
ARM Raspbian 3.x:
https://buildbot.python.org/all/#/builders/424/builds/294

I don't understand why the test started to fail at build 294 which only has one new change: commit 2165cea548f961b308050f30d1f042a377651d44 ("bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings"). It seems to be unrelated.

I failed to reproduce the issue on Linux.

======================================================================
FAIL: testBoth (test.test_zipimport.UncompressedZipImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 194, in testBoth
    self.doTest(pyc_ext, files, TESTMOD)
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 148, in doTest
    self.assertEqual(file, os.path.join(TEMP_ZIP,
AssertionError: '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py' != '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc'
- /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py
+ /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc
?                                                                                                                                  +


======================================================================
FAIL: testGetCompiledSource (test.test_zipimport.UncompressedZipImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 594, in testGetCompiledSource
    self.doTest(pyc_ext, files, TESTMOD, call=self.assertModuleSource)
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 148, in doTest
    self.assertEqual(file, os.path.join(TEMP_ZIP,
AssertionError: '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py' != '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc'
- /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py
+ /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc
?                                                                                                                                  +


======================================================================
FAIL: testBoth (test.test_zipimport.CompressedZipImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 194, in testBoth
    self.doTest(pyc_ext, files, TESTMOD)
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 148, in doTest
    self.assertEqual(file, os.path.join(TEMP_ZIP,
AssertionError: '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py' != '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc'
- /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py
+ /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc
?                                                                                                                                  +


======================================================================
FAIL: testGetCompiledSource (test.test_zipimport.CompressedZipImportTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 594, in testGetCompiledSource
    self.doTest(pyc_ext, files, TESTMOD, call=self.assertModuleSource)
  File "/var/lib/buildbot/workers/3.x.gps-raspbian/build/Lib/test/test_zipimport.py", line 148, in doTest
    self.assertEqual(file, os.path.join(TEMP_ZIP,
AssertionError: '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py' != '/var[64 chars]8289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc'
- /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.py
+ /var/lib/buildbot/workers/3.x.gps-raspbian/build/build/test_python_18289æ/test_python_worker_2163æ/junk95142.zip/ziptestmodule.pyc
?                                                                                                                                  +
msg380136 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-01 13:51
The test failed on many 3.x buildbots. Other examples:

* PPC64LE Fedora Rawhide 3.x: https://buildbot.python.org/all/#builders/455/builds/226
* AMD64 Windows10 3.x: https://buildbot.python.org/all/#builders/146/builds/295
msg381121 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-16 17:04
The 3 mentionned buildbot workers are back to green, so I close the issue.
History
Date User Action Args
2020-11-16 17:04:25vstinnersetstatus: open -> closed
resolution: out of date
messages: + msg381121

stage: resolved
2020-11-01 13:51:48vstinnersetmessages: + msg380136
2020-11-01 13:44:32vstinnercreate