diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-11 20:26:10 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-11 20:26:10 (GMT) |
commit | f3ba6a974a9174748251e27b7c639566036eca05 (patch) | |
tree | a8913d09014f39cac4d1bd03c6c21203243ed1cf | |
parent | 2e1b7fc998e1744eeb3bb31b131eba0145b88a2f (diff) | |
download | cpython-f3ba6a974a9174748251e27b7c639566036eca05.zip cpython-f3ba6a974a9174748251e27b7c639566036eca05.tar.gz cpython-f3ba6a974a9174748251e27b7c639566036eca05.tar.bz2 |
Issue #5124: For 2.7, move requires('gui') from module level to setUpClass.
-rw-r--r-- | Lib/idlelib/idle_test/test_editmenu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_editmenu.py b/Lib/idlelib/idle_test/test_editmenu.py index d352240..1d36069 100644 --- a/Lib/idlelib/idle_test/test_editmenu.py +++ b/Lib/idlelib/idle_test/test_editmenu.py @@ -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) |