File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1594,6 +1594,7 @@ def __len__(self):
1594
1594
containers = [
1595
1595
seq ,
1596
1596
ItemsView ({1 : nan , 2 : obj }),
1597
+ KeysView ({1 : nan , 2 : obj }),
1597
1598
ValuesView ({1 : nan , 2 : obj })
1598
1599
]
1599
1600
for container in containers :
@@ -1857,6 +1858,8 @@ def test_MutableMapping_subclass(self):
1857
1858
mymap ['red' ] = 5
1858
1859
self .assertIsInstance (mymap .keys (), Set )
1859
1860
self .assertIsInstance (mymap .keys (), KeysView )
1861
+ self .assertIsInstance (mymap .values (), Collection )
1862
+ self .assertIsInstance (mymap .values (), ValuesView )
1860
1863
self .assertIsInstance (mymap .items (), Set )
1861
1864
self .assertIsInstance (mymap .items (), ItemsView )
1862
1865
Original file line number Diff line number Diff line change @@ -320,6 +320,9 @@ def test_abc_registry(self):
320
320
self .assertIsInstance (d .values (), collections .abc .ValuesView )
321
321
self .assertIsInstance (d .values (), collections .abc .MappingView )
322
322
self .assertIsInstance (d .values (), collections .abc .Sized )
323
+ self .assertIsInstance (d .values (), collections .abc .Collection )
324
+ self .assertIsInstance (d .values (), collections .abc .Iterable )
325
+ self .assertIsInstance (d .values (), collections .abc .Container )
323
326
324
327
self .assertIsInstance (d .items (), collections .abc .ItemsView )
325
328
self .assertIsInstance (d .items (), collections .abc .MappingView )
You can’t perform that action at this time.
0 commit comments