Skip to content

Commit 7779027

Browse files
[3.11] gh-104461: Run tkinter test_configure_screen on X11 only (GH-104526)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
1 parent a712c5f commit 7779027

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Lib/tkinter/test/test_tkinter/test_widgets.py

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

7878
def test_configure_screen(self):
7979
widget = self.create()
80+
if widget._windowingsystem != 'x11':
81+
self.skipTest('Not using Tk for X11')
8082
self.assertEqual(widget['screen'], '')
8183
try:
8284
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)