diff options
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 7c3f215e9f..0095bd03bb 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -1706,8 +1706,8 @@ def _editor_window(parent): # htest # # edit.text.bind("<<close-window>>", edit.close_event) if __name__ == '__main__': - import unittest - unittest.main('idlelib.idle_test.test_editor', verbosity=2, exit=False) + from unittest import main + main('idlelib.idle_test.test_editor', verbosity=2, exit=False) from idlelib.idle_test.htest import run run(_editor_window) |