Skip to content

Commit

Permalink
[3.11] gh-104461: Run tkinter test_configure_screen on X11 only (GH-1…
Browse files Browse the repository at this point in the history
…04526)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
  • Loading branch information
miss-islington and chrstphrchvz committed May 16, 2023
1 parent a712c5f commit 7779027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/tkinter/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def test_configure_menu(self):

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

0 comments on commit 7779027

Please sign in to comment.