Skip to content

Commit 22fe0eb

Browse files
authored
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
1 parent 2b76a53 commit 22fe0eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/idlelib/idle_test/test_macosx.py

+9
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)