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

[3.11] gh-79871: IDLE-Fix test_debugger bug and buildbot failures (GH-112258) #112260

Merged
merged 1 commit into from Nov 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions Lib/idlelib/idle_test/test_debugger.py
@@ -1,4 +1,7 @@
"Test debugger, coverage 19%"
"""Test debugger, coverage 66%

Try to make tests pass with draft bdbx, which may replace bdb in 3.13+.
"""

from idlelib import debugger
from collections import namedtuple
Expand Down Expand Up @@ -44,10 +47,8 @@ def setUpClass(cls):
cls.msg = 'file.py:2: <module>()'

def test_init(self):
# Test that Idb.__init_ calls Bdb.__init__.
idb = debugger.Idb(None)
self.assertIsNone(idb.gui)
self.assertTrue(hasattr(idb, 'breaks'))
self.assertIs(self.idb.gui, self.gui)
# Won't test super call since two Bdbs are very different.

def test_user_line(self):
# Test that .user_line() creates a string message for a frame.
Expand Down Expand Up @@ -279,6 +280,7 @@ class NameSpaceTest(unittest.TestCase):

@classmethod
def setUpClass(cls):
requires('gui')
cls.root = Tk()
cls.root.withdraw()

Expand Down