Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946568 - dev-python/ipython-8.30.0[python_targets_python3_13]: fails tests: AttributeError: 'Pdb' object has no attribute 'curframe'
Summary: dev-python/ipython-8.30.0[python_targets_python3_13]: fails tests: AttributeE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-17 04:10 UTC by Gabi Falk
Modified: 2024-12-20 00:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/dev-python/ipython-8.30.0/temp/build.log (build.log,539.48 KB, text/x-log)
2024-12-17 04:10 UTC, Gabi Falk
Details
emerge --info =dev-python/ipython-8.30.0 (emerge-info-ipython.txt,6.44 KB, text/plain)
2024-12-17 04:15 UTC, Gabi Falk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabi Falk 2024-12-17 04:10:13 UTC
Created attachment 914196 [details]
/var/tmp/portage/dev-python/ipython-8.30.0/temp/build.log

dev-python/ipython built for python 3.13 fails tests:

FAILED IPython/core/tests/test_run.py::TestMagicRunPass::test_run_debug_twice - AttributeError: 'Pdb' object has no attribute 'curframe'. Did you mean: 'botframe'?
FAILED IPython/core/tests/test_run.py::TestMagicRunPass::test_run_debug_twice_with_breakpoint - AttributeError: 'Pdb' object has no attribute 'curframe'. Did you mean: 'botframe'?
================================================================ 2 failed, 1446 passed, 79 skipped, 5 deselected, 25 warnings in 66.12s (0:01:06) =================================================================


I'm planning to make a PR to fix this issue.
Comment 1 Gabi Falk 2024-12-17 04:15:17 UTC
Created attachment 914197 [details]
emerge --info =dev-python/ipython-8.30.0
Comment 3 Larry the Git Cow gentoo-dev 2024-12-20 00:02:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=404bee8d79dc272a718132e5c138a8be2bab968d

commit 404bee8d79dc272a718132e5c138a8be2bab968d
Author:     Gabi Falk <gabifalk@gmx.com>
AuthorDate: 2024-12-17 19:00:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-19 23:58:59 +0000

    dev-python/ipython: Backport upstream fix for python 3.13 regression
    
    The regression was detected by ipython's own testsuite.
    
    This part of the IPython code is expected to break again with python 3.14,
    because the curframe_locals attribute was removed in the PR cpython#124369.
    However, there are plans to restore this attribute for backward compatibility in
    PR cpython#125951 before the CPython 3.14 release.
    
    Url: https://github.com/ipython/ipython/pull/14598
    Url: https://github.com/ipython/ipython/commit/c1e945b5bc8fb673109cf32c4f238f6d5e0f5149
    Url: https://github.com/python/cpython/pull/124369
    Url: https://github.com/python/cpython/pull/125951
    Url: https://github.com/ipython/ipython/issues/14620
    Closes: https://bugs.gentoo.org/946568
    Signed-off-by: Gabi Falk <gabifalk@gmx.com>
    Closes: https://github.com/gentoo/gentoo/pull/39746
    Signed-off-by: Sam James <sam@gentoo.org>

 ...n-8.30.0-python3.13-debugger-pdb-curframe.patch | 30 ++++++++++++++++++++++
 ...thon-8.30.0.ebuild => ipython-8.30.0-r1.ebuild} |  2 ++
 2 files changed, 32 insertions(+)