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 @@ -1580,6 +1580,7 @@ def __len__(self):
1580
1580
containers = [
1581
1581
seq ,
1582
1582
ItemsView ({1 : nan , 2 : obj }),
1583
+ KeysView ({1 : nan , 2 : obj }),
1583
1584
ValuesView ({1 : nan , 2 : obj })
1584
1585
]
1585
1586
for container in containers :
@@ -1843,6 +1844,8 @@ def test_MutableMapping_subclass(self):
1843
1844
mymap ['red' ] = 5
1844
1845
self .assertIsInstance (mymap .keys (), Set )
1845
1846
self .assertIsInstance (mymap .keys (), KeysView )
1847
+ self .assertIsInstance (mymap .values (), Collection )
1848
+ self .assertIsInstance (mymap .values (), ValuesView )
1846
1849
self .assertIsInstance (mymap .items (), Set )
1847
1850
self .assertIsInstance (mymap .items (), ItemsView )
1848
1851
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