diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-31 19:24:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 19:24:48 (GMT) |
commit | 2280bc116301d45efc4d69cea452d272fdcd05b1 (patch) | |
tree | dada5cc6aeb70d47682176bbec1024dff171c7c9 /Lib/idlelib/idle_test/test_macosx.py | |
parent | c1db7598790d037e58cd99c06d5c166433d63322 (diff) | |
download | cpython-2280bc116301d45efc4d69cea452d272fdcd05b1.zip cpython-2280bc116301d45efc4d69cea452d272fdcd05b1.tar.gz cpython-2280bc116301d45efc4d69cea452d272fdcd05b1.tar.bz2 |
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit 22fe0eb13c3441b71b60aaea0e7fe289a29783da)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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 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." |