Server IP : 192.158.238.246 / Your IP : 3.144.114.4 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python34/lib64/python3.4/idlelib/idle_test/ |
Upload File : |
'''Unittests for idlelib/configHandler.py Coverage: 46% just by creating dialog. The other half is change code. ''' import unittest from test.support import requires from tkinter import Tk from idlelib.configDialog import ConfigDialog from idlelib.macosxSupport import _initializeTkVariantTests class ConfigDialogTest(unittest.TestCase): @classmethod def setUpClass(cls): requires('gui') cls.root = Tk() _initializeTkVariantTests(cls.root) @classmethod def tearDownClass(cls): cls.root.destroy() del cls.root def test_dialog(self): d=ConfigDialog(self.root, 'Test', _utest=True) d.destroy() if __name__ == '__main__': unittest.main(verbosity=2)