bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)

This commit is contained in:
Terry Jan Reedy 2021-08-31 14:59:35 -04:00 committed by GitHub
parent 2b76a5322f
commit 22fe0eb13c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."