diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2021-08-31 14:59:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 14:59:35 -0400 |
commit | 22fe0eb13c3441b71b60aaea0e7fe289a29783da (patch) | |
tree | 05476171776468b16955b32897d04f06300bc66c /Lib/idlelib/idle_test/test_macosx.py | |
parent | 2b76a5322fdf71d62b531fd765085f96f981c244 (diff) | |
download | cpython-22fe0eb13c3441b71b60aaea0e7fe289a29783da.tar.gz cpython-22fe0eb13c3441b71b60aaea0e7fe289a29783da.zip |
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
Diffstat (limited to 'Lib/idlelib/idle_test/test_macosx.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_macosx.py | 9 |
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 19324773586..86da8849e5c 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." |