summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_tkinter/test_text.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-13 16:59:04 (GMT)
committerGitHub <noreply@github.com>2021-10-13 16:59:04 (GMT)
commit151234f5da4b1922e3d91233a6eddda92d7269b0 (patch)
treebcaf5ece5161c10f2ff9bf5bab5358e0de3b3a6e /Lib/tkinter/test/test_tkinter/test_text.py
parent5abb2dec2cf147ce71cd15bcfda1bd095818f222 (diff)
downloadcpython-151234f5da4b1922e3d91233a6eddda92d7269b0.zip
cpython-151234f5da4b1922e3d91233a6eddda92d7269b0.tar.gz
cpython-151234f5da4b1922e3d91233a6eddda92d7269b0.tar.bz2
bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28927)
(cherry picked from commit f59ed3c310a7ceebf2a56a84ea969a7f75d95b64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_text.py')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_text.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_text.py b/Lib/tkinter/test/test_tkinter/test_text.py
index 13b7c56..482f150 100644
--- a/Lib/tkinter/test/test_tkinter/test_text.py
+++ b/Lib/tkinter/test/test_tkinter/test_text.py
@@ -1,6 +1,6 @@
import unittest
import tkinter
-from test.support import requires, run_unittest
+from test.support import requires
from tkinter.test.support import AbstractTkTest
requires('gui')
@@ -41,7 +41,5 @@ class TextTest(AbstractTkTest, unittest.TestCase):
self.assertEqual(text.search('test', '1.0', 'end'), '1.3')
-tests_gui = (TextTest, )
-
if __name__ == "__main__":
- run_unittest(*tests_gui)
+ unittest.main()