summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tkinter
diff options
context:
space:
mode:
authorChristopher Chavez <chrischavez@gmx.us>2023-04-24 01:31:44 (GMT)
committerGitHub <noreply@github.com>2023-04-24 01:31:44 (GMT)
commitf0ed293f6aec1c2ed22725301b77d6ccedc2d486 (patch)
tree28f60161855b588a730da5114cfc5f1492e6dd0a /Lib/test/test_tkinter
parentbd2dca035af88694e25fb060f984fbbcda82bed8 (diff)
downloadcpython-f0ed293f6aec1c2ed22725301b77d6ccedc2d486.zip
cpython-f0ed293f6aec1c2ed22725301b77d6ccedc2d486.tar.gz
cpython-f0ed293f6aec1c2ed22725301b77d6ccedc2d486.tar.bz2
gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (#103686)
--------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_tkinter')
-rw-r--r--Lib/test/test_tkinter/test_widgets.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_tkinter/test_widgets.py b/Lib/test/test_tkinter/test_widgets.py
index 64c9472..ba4ef49 100644
--- a/Lib/test/test_tkinter/test_widgets.py
+++ b/Lib/test/test_tkinter/test_widgets.py
@@ -1377,6 +1377,11 @@ class MenuTest(AbstractWidgetTest, unittest.TestCase):
def create(self, **kwargs):
return tkinter.Menu(self.root, **kwargs)
+ def test_indexcommand_none(self):
+ widget = self.create()
+ i = widget.index('none')
+ self.assertIsNone(i)
+
def test_configure_postcommand(self):
widget = self.create()
self.checkCommandParam(widget, 'postcommand')