summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2021-08-31 18:59:35 (GMT)
committerGitHub <noreply@github.com>2021-08-31 18:59:35 (GMT)
commit22fe0eb13c3441b71b60aaea0e7fe289a29783da (patch)
tree05476171776468b16955b32897d04f06300bc66c /Lib/idlelib
parent2b76a5322fdf71d62b531fd765085f96f981c244 (diff)
downloadcpython-22fe0eb13c3441b71b60aaea0e7fe289a29783da.zip
cpython-22fe0eb13c3441b71b60aaea0e7fe289a29783da.tar.gz
cpython-22fe0eb13c3441b71b60aaea0e7fe289a29783da.tar.bz2
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/idle_test/test_macosx.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_macosx.py b/Lib/idlelib/idle_test/test_macosx.py
index 1932477..86da884 100644
--- a/Lib/idlelib/idle_test/test_macosx.py
+++ b/Lib/idlelib/idle_test/test_macosx.py
@@ -12,6 +12,15 @@ nontypes = {'other'}
alltypes = mactypes | nontypes
+def setUpModule():
+ global orig_tktype
+ orig_tktype = macosx._tk_type
+
+
+def tearDownModule():
+ macosx._tk_type = orig_tktype
+
+
class InitTktypeTest(unittest.TestCase):
"Test _init_tk_type."