mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit 22fe0eb13c
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
ebbd0ac5d8
commit
0f274cb2d7
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