@@ -1556,27 +1556,6 @@ def test_selection(self):
15561556 self .tv .selection_toggle ((c1 , c3 ))
15571557 self .assertEqual (self .tv .selection (), (c3 , item2 ))
15581558
1559- if sys .version_info >= (3 , 8 ):
1560- import warnings
1561- warnings .warn (
1562- 'Deprecated API of Treeview.selection() should be removed' )
1563- self .tv .selection_set ()
1564- self .assertEqual (self .tv .selection (), ())
1565- with self .assertWarns (DeprecationWarning ):
1566- self .tv .selection ('set' , (c1 , item2 ))
1567- self .assertEqual (self .tv .selection (), (c1 , item2 ))
1568- with self .assertWarns (DeprecationWarning ):
1569- self .tv .selection ('add' , (c1 , item1 ))
1570- self .assertEqual (self .tv .selection (), (item1 , c1 , item2 ))
1571- with self .assertWarns (DeprecationWarning ):
1572- self .tv .selection ('remove' , (item1 , c3 ))
1573- self .assertEqual (self .tv .selection (), (c1 , item2 ))
1574- with self .assertWarns (DeprecationWarning ):
1575- self .tv .selection ('toggle' , (c1 , c3 ))
1576- self .assertEqual (self .tv .selection (), (c3 , item2 ))
1577- with self .assertWarns (DeprecationWarning ):
1578- selection = self .tv .selection (None )
1579- self .assertEqual (selection , (c3 , item2 ))
15801559
15811560 def test_set (self ):
15821561 self .tv ['columns' ] = ['A' , 'B' ]
0 commit comments