We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecdef17 commit 2286e60Copy full SHA for 2286e60
1 file changed
Lib/test/test_tkinter/test_misc.py
@@ -592,7 +592,10 @@ def test_tk_inactive(self):
592
ms = self.root.tk_inactive()
593
self.assertIsInstance(ms, int)
594
# A count of milliseconds, or -1 if the windowing system lacks support.
595
- self.assertGreaterEqual(ms, -1)
+ if self.root._windowingsystem != 'win32':
596
+ # On Windows the value can overflow to a negative number
597
+ # (Tk ticket 3cb7c4ac72d4).
598
+ self.assertGreaterEqual(ms, -1)
599
# Resetting the timer returns None and does not raise.
600
self.assertIsNone(self.root.tk_inactive(reset=True))
601
0 commit comments