Skip to content

Commit

Permalink
pythongh-104461: Run tkinter test_configure_screen on X11 only (pytho…
Browse files Browse the repository at this point in the history
…nGH-104462)

(cherry picked from commit fdafdc2)

Co-authored-by: Christopher Chavez <[email protected]>
  • Loading branch information
chrstphrchvz authored and miss-islington committed May 16, 2023
1 parent a712c5f commit b77bce5
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 b77bce5

Please sign in to comment.