mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-43981: Fix error in idle-test leak test (GH-25739)
Remove call to macosx.setupApp, which calls macosc.overrideRootMenu, which modifies the menus, which results in two failures in the second round of the leak test.
This commit is contained in:
parent
175a54b2d8
commit
a62e424de0
1 changed files with 2 additions and 3 deletions
|
@ -7,11 +7,10 @@ import unittest
|
||||||
import unittest.mock
|
import unittest.mock
|
||||||
from test.support import requires, swap_attr
|
from test.support import requires, swap_attr
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from .tkinter_testing_utils import run_in_tk_mainloop
|
from idlelib.idle_test.tkinter_testing_utils import run_in_tk_mainloop
|
||||||
|
|
||||||
from idlelib.delegator import Delegator
|
from idlelib.delegator import Delegator
|
||||||
from idlelib.editor import fixwordbreaks
|
from idlelib.editor import fixwordbreaks
|
||||||
from idlelib import macosx
|
|
||||||
from idlelib.percolator import Percolator
|
from idlelib.percolator import Percolator
|
||||||
import idlelib.pyshell
|
import idlelib.pyshell
|
||||||
from idlelib.pyshell import fix_x11_paste, PyShell, PyShellFileList
|
from idlelib.pyshell import fix_x11_paste, PyShell, PyShellFileList
|
||||||
|
@ -408,7 +407,7 @@ class ShellSidebarTest(unittest.TestCase):
|
||||||
fix_x11_paste(root)
|
fix_x11_paste(root)
|
||||||
|
|
||||||
cls.flist = flist = PyShellFileList(root)
|
cls.flist = flist = PyShellFileList(root)
|
||||||
macosx.setupApp(root, flist)
|
# See #43981 about macosx.setupApp(root, flist) causing failure.
|
||||||
root.update_idletasks()
|
root.update_idletasks()
|
||||||
|
|
||||||
cls.init_shell()
|
cls.init_shell()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue