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 @@ ...@@ -3,7 +3,6 @@
Edit modules have their own test files files Edit modules have their own test files files
''' '''
from test.test_support import requires from test.test_support import requires
requires('gui')
import Tkinter as tk import Tkinter as tk
import unittest import unittest
from idlelib import PyShell from idlelib import PyShell
...@@ -15,6 +14,7 @@ class PasteTest(unittest.TestCase): ...@@ -15,6 +14,7 @@ class PasteTest(unittest.TestCase):
''' '''
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
requires('gui')
cls.root = root = tk.Tk() cls.root = root = tk.Tk()
PyShell.fix_x11_paste(root) PyShell.fix_x11_paste(root)
cls.text = tk.Text(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