Commit f3ba6a97 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #5124: For 2.7, move requires('gui') from module level to setUpClass.

parent 2e1b7fc9
......@@ -3,7 +3,6 @@
Edit modules have their own test files files
'''
from test.test_support import requires
requires('gui')
import Tkinter as tk
import unittest
from idlelib import PyShell
......@@ -15,6 +14,7 @@ class PasteTest(unittest.TestCase):
'''
@classmethod
def setUpClass(cls):
requires('gui')
cls.root = root = tk.Tk()
PyShell.fix_x11_paste(root)
cls.text = tk.Text(root)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment