mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Refresh the IDLE, Tkinter and turtle family through update_lib, including the direct canonical text-only helper and image fixture dependencies. Preserve capability/display guards without changing native Tk support. Assisted-by: OpenAI Codex:model-version-unavailable
32 lines
699 B
Python
Vendored
32 lines
699 B
Python
Vendored
"Test , coverage %."
|
|
|
|
from idlelib import zzdummy # Replace with the module to test.
|
|
import unittest
|
|
from test.support import requires
|
|
from tkinter import Tk
|
|
|
|
|
|
class Test(unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
requires('gui')
|
|
cls.root = Tk()
|
|
cls.root.withdraw()
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
cls.root.update_idletasks()
|
|
## for id in cls.root.after_info():
|
|
## cls.root.after_cancel(id) # Need for EditorWindow.
|
|
cls.root.destroy()
|
|
del cls.root
|
|
|
|
@unittest.skip('Dummy test')
|
|
def test_init(self):
|
|
self.assertTrue(True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(verbosity=2)
|