diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-24 11:34:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-24 11:34:09 (GMT) |
commit | 2fad10235460ac394cc8b869c41f47aba3d63594 (patch) | |
tree | 28a55ca103201a0b6b753c0d1724708ca1f34d32 /Lib/tkinter/test | |
parent | c247caf33f6e6000d828db4762d1cb12edf3cd57 (diff) | |
download | cpython-2fad10235460ac394cc8b869c41f47aba3d63594.zip cpython-2fad10235460ac394cc8b869c41f47aba3d63594.tar.gz cpython-2fad10235460ac394cc8b869c41f47aba3d63594.tar.bz2 |
bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667)
Defer removing old behavior to 3.8.
Document new feature of selection_set() and friends.
Diffstat (limited to 'Lib/tkinter/test')
-rw-r--r-- | Lib/tkinter/test/test_ttk/test_widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_widgets.py b/Lib/tkinter/test/test_ttk/test_widgets.py index 26766a8..ab0db28 100644 --- a/Lib/tkinter/test/test_ttk/test_widgets.py +++ b/Lib/tkinter/test/test_ttk/test_widgets.py @@ -1556,7 +1556,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase): self.tv.selection_toggle((c1, c3)) self.assertEqual(self.tv.selection(), (c3, item2)) - if sys.version_info >= (3, 7): + if sys.version_info >= (3, 8): import warnings warnings.warn( 'Deprecated API of Treeview.selection() should be removed') |