summaryrefslogtreecommitdiff
path: root/Lib/tkinter/test/test_tkinter/test_simpledialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_simpledialog.py')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_simpledialog.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_simpledialog.py b/Lib/tkinter/test/test_tkinter/test_simpledialog.py
index b64b854c4d..18cd2712b0 100644
--- a/Lib/tkinter/test/test_tkinter/test_simpledialog.py
+++ b/Lib/tkinter/test/test_tkinter/test_simpledialog.py
@@ -1,6 +1,6 @@
import unittest
import tkinter
-from test.support import requires, run_unittest, swap_attr
+from test.support import requires, swap_attr
from tkinter.test.support import AbstractDefaultRootTest
from tkinter.simpledialog import Dialog, askinteger
@@ -31,7 +31,5 @@ class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase):
self.assertRaises(RuntimeError, askinteger, "Go To Line", "Line number")
-tests_gui = (DefaultRootTest,)
-
if __name__ == "__main__":
- run_unittest(*tests_gui)
+ unittest.main()