Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_zipimport failure #86397

Closed
vstinner opened this issue Nov 1, 2020 · 3 comments
Closed

test_zipimport failure #86397

vstinner opened this issue Nov 1, 2020 · 3 comments
Labels
3.10 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

vstinner commented Nov 1, 2020

BPO 42231
Nosy @vstinner

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-11-16.17:04:25.364>
created_at = <Date 2020-11-01.13:44:32.754>
labels = ['tests', '3.10']
title = 'test_zipimport failure'
updated_at = <Date 2020-11-16.17:04:25.363>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2020-11-16.17:04:25.363>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2020-11-16.17:04:25.364>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2020-11-01.13:44:32.754>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 42231
keywords = []
message_count = 3.0
messages = ['380135', '380136', '381121']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue42231'
versions = ['Python 3.10']

@vstinner
Copy link
Member Author

vstinner commented Nov 1, 2020

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 2165cea ("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
?                                                                                                                                  +

@vstinner vstinner added 3.10 only security fixes tests Tests in the Lib/test dir labels Nov 1, 2020
@vstinner
Copy link
Member Author

vstinner commented Nov 1, 2020

The test failed on many 3.x buildbots. Other examples:

@vstinner
Copy link
Member Author

The 3 mentionned buildbot workers are back to green, so I close the issue.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant