diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-18 02:48:22 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-18 02:48:22 (GMT) |
commit | 092473eef9873af210642497b148aa623c546e72 (patch) | |
tree | 55ca0554e19c145a236d0ef219c32c2f1a0e9f8a /Lib/idlelib/idle_test/test_parenmatch.py | |
parent | cec95813b269d2442b56e0487a55616f85c7ed52 (diff) | |
download | cpython-092473eef9873af210642497b148aa623c546e72.zip cpython-092473eef9873af210642497b148aa623c546e72.tar.gz cpython-092473eef9873af210642497b148aa623c546e72.tar.bz2 |
Issue #21939: Test IDLE percolator. Original patch by Saimadhav Heblikar.
Diffstat (limited to 'Lib/idlelib/idle_test/test_parenmatch.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_parenmatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_parenmatch.py b/Lib/idlelib/idle_test/test_parenmatch.py index 9aba4be..e153952 100644 --- a/Lib/idlelib/idle_test/test_parenmatch.py +++ b/Lib/idlelib/idle_test/test_parenmatch.py @@ -1,10 +1,11 @@ """Test idlelib.ParenMatch.""" # This must currently be a gui test because ParenMatch methods use # several text methods not defined on idlelib.idle_test.mock_tk.Text. +from test.support import requires +requires('gui') import unittest from unittest.mock import Mock -from test.support import requires from tkinter import Tk, Text from idlelib.ParenMatch import ParenMatch @@ -20,7 +21,6 @@ class ParenMatchTest(unittest.TestCase): @classmethod def setUpClass(cls): - requires('gui') cls.root = Tk() cls.text = Text(cls.root) cls.editwin = DummyEditwin(cls.text) |