Skip to content

Commit e2091ed

Browse files
Update Lib/test/test_ttk/test_extensions.py
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 6b24526 commit e2091ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_ttk/test_extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def cb_test(*args):
322322
def test_specify_name(self):
323323
textvar = tkinter.StringVar(self.root)
324324
widget = ttk.OptionMenu(self.root, textvar, ":)", name="option_menu_ex")
325-
self.assertIs(self.root.nametowidget("option_menu_ex"), widget)
325+
self.assertEqual(str(widget), ".option_menu_ex")
326+
self.assertIs(self.root.children["option_menu_ex"], widget)
326327

327328

328329
class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase):

0 commit comments

Comments
 (0)