Skip to content

Commit fdafdc2

Browse files
authored
pythongh-104461: Run tkinter test_configure_screen on X11 only (pythonGH-104462)
1 parent 456d566 commit fdafdc2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: Lib/test/test_tkinter/test_widgets.py

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def test_configure_menu(self):
7676

7777
def test_configure_screen(self):
7878
widget = self.create()
79+
if widget._windowingsystem != 'x11':
80+
self.skipTest('Not using Tk for X11')
7981
self.assertEqual(widget['screen'], '')
8082
try:
8183
display = os.environ['DISPLAY']
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Run test_configure_screen on X11 only, since the ``DISPLAY``
2+
environment variable and ``-screen`` option for toplevels
3+
are not useful on Tk for Win32 or Aqua.

0 commit comments

Comments
 (0)