New GitHub issue #100225 from fabiounixpi:<br>

<hr>

<pre>
<!--
  If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not
  the right place to seek help. Consider the following options instead:

  - reading the Python tutorial: https://docs.python.org/3/tutorial/
  - posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7
  - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list
  - searching our issue tracker (https://github.com/python/cpython/issues) to see if
    your problem has already been reported
-->

# Bug report

Compiling Python 3.11.1 from source code, on AlmaLinux 8.7 (fully updated), issuing
  $ make test
it stop with

...
stderr:
--- Loop #1 ---
Traceback (most recent call last):
  File "<string>", line 8, in <module>
AssertionError

------
FAIL

======================================================================
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 "/root/sorgenti/Python-3.11.1/Lib/test/test_embed.py", line 381, in test_quickened_static_code_gets_unquickened_at_Py_FINALIZE
    out, err = run("test_repeated_init_exec", code)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/sorgenti/Python-3.11.1/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'

----------------------------------------------------------------------
Ran 1 test in 0.021s

FAILED (failures=1)
test test_embed failed
0:02:21 load avg: 2.47 Re-running test_tools in verbose mode (matching: test_freeze_simple_script)
test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script) ... creating the script to be frozen at /tmp/tmp7zgf8ru6/app.py
copying the source tree into /tmp/tmp7zgf8ru6/cpython...
configuring python in /tmp/tmp7zgf8ru6/python-build...
building python in /tmp/tmp7zgf8ru6/python-build...
installing python into /tmp/tmp7zgf8ru6/python-installation...
freezing /tmp/tmp7zgf8ru6/app.py...
ok

----------------------------------------------------------------------
Ran 1 test in 86.208s

OK
1 test failed again:
    test_embed

== Tests result: FAILURE then FAILURE ==

418 tests OK.

1 test failed:
    test_embed

15 tests skipped:
    test_devpoll test_gdb test_ioctl test_kqueue test_launcher
    test_msilib test_ossaudiodev test_startfile test_tix test_tk
    test_ttk_guionly test_winconsoleio test_winreg test_winsound
    test_zipfile64

2 re-run tests:
    test_embed test_tools

Total duration: 3 min 48 sec
Tests result: FAILURE then FAILURE
make: *** [Makefile:1815: test] Error 2

...



# Your environment

- CPython versions tested on: Python 3.11.1
- Operating system and architecture: AlmaLinux 8.7 x86_64
- Build options:  ./configure --enable-shared --enable-optimizations


<!--
You can freely edit this text. Remove any lines you believe are unnecessary.
-->

</pre>

<hr>

<a href="https://github.com/python/cpython/issues/100225">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>