mirror of https://github.com/python/cpython
Stop test_tcl's testLoadTk from leaking the Tk commands 'loadtk' registers.
This commit is contained in:
parent
03f76cfbf3
commit
a6c67b56b2
|
@ -124,6 +124,7 @@ class TclTest(unittest.TestCase):
|
||||||
self.assertRaises(TclError,tcl.winfo_geometry)
|
self.assertRaises(TclError,tcl.winfo_geometry)
|
||||||
tcl.loadtk()
|
tcl.loadtk()
|
||||||
self.assertEqual('1x1+0+0', tcl.winfo_geometry())
|
self.assertEqual('1x1+0+0', tcl.winfo_geometry())
|
||||||
|
tcl.destroy()
|
||||||
|
|
||||||
def testLoadTkFailure(self):
|
def testLoadTkFailure(self):
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue