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_import sometimes fails in "Hypothesis tests on Ubuntu" job #131229

Open
sobolevn opened this issue Mar 14, 2025 · 1 comment
Open

test_import sometimes fails in "Hypothesis tests on Ubuntu" job #131229

sobolevn opened this issue Mar 14, 2025 · 1 comment
Labels
tests Tests in the Lib/test dir topic-importlib topic-subinterpreters type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

This is not the first time I see this, but the first time I decided to report it :)

======================================================================
FAIL: test_basic_multiple_interpreters_deleted_no_reset (test.test_import.SinglephaseInitTests.test_basic_multiple_interpreters_deleted_no_reset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/support/__init__.py", line 1270, in wrapper
    func(self)
    ~~~~^^^^^^
  File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_import/__init__.py", line 3285, in test_basic_multiple_interpreters_deleted_no_reset
    self.check_copied(loaded_interp1, base)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_import/__init__.py", line 2948, in check_copied
    self.assertNotEqual(snap.id, base.snapshot.id)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 140557519167152 == 140557519167152

----------------------------------------------------------------------

Link: https://github.com/python/cpython/actions/runs/13854070641/job/38766894924?pr=131220

@brettcannon
Copy link
Member

Link to the failing line:

self.check_copied(loaded_interp1, base)

Looks to be a subinterpreters test, @ericsnowcurrently .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-importlib topic-subinterpreters type-bug An unexpected behavior, bug, or error
Projects
Status: Todo
Development

No branches or pull requests

3 participants