mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
[3.11] gh-104461: Run tkinter test_configure_screen on X11 only (GH-104526)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
This commit is contained in:
parent
a712c5f42d
commit
7779027084
2 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,8 @@ class ToplevelTest(AbstractToplevelTest, unittest.TestCase):
|
||||||
|
|
||||||
def test_configure_screen(self):
|
def test_configure_screen(self):
|
||||||
widget = self.create()
|
widget = self.create()
|
||||||
|
if widget._windowingsystem != 'x11':
|
||||||
|
self.skipTest('Not using Tk for X11')
|
||||||
self.assertEqual(widget['screen'], '')
|
self.assertEqual(widget['screen'], '')
|
||||||
try:
|
try:
|
||||||
display = os.environ['DISPLAY']
|
display = os.environ['DISPLAY']
|
||||||
|
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue