Bug#1056483: python-memory-profiler's autopkg tests fail with Python 3.12

Matthias Klose doko at debian.org
Wed Nov 22 14:14:36 GMT 2023


Package: src:python-memory-profiler
Version: 0.61-1
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags: python3.12

python-memory-profiler's autopkg tests fail with Python 3.12:

[...]
323s python3.12 test/test_exception.py
323s Success
323s python3.12 test/test_exit_code.py
323s Traceback (most recent call last):
323s   File "<frozen runpy>", line 198, in _run_module_as_main
323s   File "<frozen runpy>", line 88, in _run_code
323s   File "/usr/lib/python3/dist-packages/memory_profiler.py", line 
1351, in <module>
323s     exec_with_profiler(script_filename, prof, args.backend, 
script_args)
323s   File "/usr/lib/python3/dist-packages/memory_profiler.py", line 
1252, in exec_with_profiler
323s     exec(compile(f.read(), filename, 'exec'), ns, ns)
323s   File "/tmp/tmprfs046e1.py", line 1, in <module>
323s     raise RuntimeError('I am not working nicely')
323s RuntimeError: I am not working nicely
323s ERROR:mprof:Program resulted with a non-zero exit code: 1
324s ..Traceback (most recent call last):
324s   File "<frozen runpy>", line 198, in _run_module_as_main
324s   File "<frozen runpy>", line 88, in _run_code
324s   File "/usr/lib/python3/dist-packages/memory_profiler.py", line 
1351, in <module>
324s     exec_with_profiler(script_filename, prof, args.backend, 
script_args)
324s   File "/usr/lib/python3/dist-packages/memory_profiler.py", line 
1252, in exec_with_profiler
324s     exec(compile(f.read(), filename, 'exec'), ns, ns)
324s   File "/tmp/tmpla15pj2f.py", line 1, in <module>
324s     raise RuntimeError('I am not working nicely')
324s RuntimeError: I am not working nicely
324s .
324s ----------------------------------------------------------------------
324s Ran 3 tests in 0.750s
324s
324s OK
324s <ignored>: Sampling memory every 0.1s
324s running new process
324s running as a Python program...
324s <ignored>: Sampling memory every 0.1s
324s running new process
324s running as a Python program...
324s <ignored>: Sampling memory every 0.1s
324s running new process
324s running as a Python program...
324s python3.12 test/test_mprof.py
324s .
324s ----------------------------------------------------------------------
324s Ran 1 test in 0.000s
324s
324s OK
324s python3.12 test/test_async.py
324s Traceback (most recent call last):
324s   File 
"/tmp/autopkgtest.1kBZ3f/autopkgtest_tmp/test/test_async.py", line 24, 
in <module>
324s     asyncio.run(main())  # main loop
324s     ^^^^^^^^^^^^^^^^^^^
324s   File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
324s     return runner.run(main)
324s            ^^^^^^^^^^^^^^^^
324s   File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
324s     return self._loop.run_until_complete(task)
324s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
324s   File "/usr/lib/python3.12/asyncio/base_events.py", line 684, in 
run_until_complete
324s     return future.result()
324s            ^^^^^^^^^^^^^^^
324s   File 
"/tmp/autopkgtest.1kBZ3f/autopkgtest_tmp/test/test_async.py", line 15, 
in main
324s     task = asyncio.create_task(my_func())
324s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
324s   File "/usr/lib/python3.12/asyncio/tasks.py", line 420, in create_task
324s     task = loop.create_task(coro)
324s            ^^^^^^^^^^^^^^^^^^^^^^
324s   File "/usr/lib/python3.12/asyncio/base_events.py", line 456, in 
create_task
324s     task = tasks.Task(coro, loop=self, name=name, context=context)
324s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
324s TypeError: a coroutine was expected, got <generator object my_func 
at 0x7f7222c58340>
324s make: *** [Makefile:21: test] Error 1



More information about the debian-science-maintainers mailing list