-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as not planned
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixespendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtestsTests in the Lib/test dirTests in the Lib/test dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
When running the test suite for Python 3.11, one test_embed
test is failing:
======================================================================
FAIL: test_quickened_static_code_gets_unquickened_at_Py_FINALIZE (test.test_embed.EmbeddingTests.test_quickened_static_code_gets_unquickened_at_Py_FINALIZE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/scratch/userland-gate/components/python/python311/Python-3.11.0rc1/Lib/test/test_embed.py", line 375, in test_quickened_static_code_gets_unquickened_at_Py_FINALIZE
out, err = run("test_repeated_init_exec", code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/userland-gate/components/python/python311/Python-3.11.0rc1/Lib/test/test_embed.py", line 115, in run_embedded_interpreter
self.assertEqual(p.returncode, returncode,
AssertionError: 1 != 0 : bad returncode 1, stderr is '--- Loop #1 ---\nTraceback (most recent call last):\n File "<string>", line 8, in <module>\nAssertionError\n'
I found out that it only fails when zope-interface is also installed - more specifically, it's the zope.interface-4.6.0-py3.11-nspkg.pth
file generated by setuptools and installed into site-packages. When I remove it, the test passes again.
Environment:
Python 3.11.0rc1 (main, Aug 19 2022, 10:02:19) [GCC 11.3.0] on sunos5
Setuptools 62.1.0 or 65.3.0
Zope interface 4.6.0
(and many other packages)
This is on Oracle Solaris, and I am not sure whether it's happening on other platforms as well. I am also not sure that this is necessarily CPython issue - I guess it might be setuptools as well?
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixespendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtestsTests in the Lib/test dirTests in the Lib/test dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done