Skip to content

Commit 0f274cb

Browse files
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit 22fe0eb) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent ebbd0ac commit 0f274cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/idlelib/idle_test/test_macosx.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
alltypes = mactypes | nontypes
1313

1414

15+
def setUpModule():
16+
global orig_tktype
17+
orig_tktype = macosx._tk_type
18+
19+
20+
def tearDownModule():
21+
macosx._tk_type = orig_tktype
22+
23+
1524
class InitTktypeTest(unittest.TestCase):
1625
"Test _init_tk_type."
1726

0 commit comments

Comments
 (0)