mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
This commit is contained in:
parent
2b76a5322f
commit
22fe0eb13c
1 changed files with 9 additions and 0 deletions
|
@ -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."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue