summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_parenmatch.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-05-18 02:48:22 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-05-18 02:48:22 (GMT)
commit092473eef9873af210642497b148aa623c546e72 (patch)
tree55ca0554e19c145a236d0ef219c32c2f1a0e9f8a /Lib/idlelib/idle_test/test_parenmatch.py
parentcec95813b269d2442b56e0487a55616f85c7ed52 (diff)
downloadcpython-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.py4
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)