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 @@ -1602,6 +1602,7 @@ def __len__(self):
1602
1602
containers = [
1603
1603
seq ,
1604
1604
ItemsView ({1 : nan , 2 : obj }),
1605
+ KeysView ({1 : nan , 2 : obj }),
1605
1606
ValuesView ({1 : nan , 2 : obj })
1606
1607
]
1607
1608
for container in containers :
@@ -1865,6 +1866,8 @@ def test_MutableMapping_subclass(self):
1865
1866
mymap ['red' ] = 5
1866
1867
self .assertIsInstance (mymap .keys (), Set )
1867
1868
self .assertIsInstance (mymap .keys (), KeysView )
1869
+ self .assertIsInstance (mymap .values (), Collection )
1870
+ self .assertIsInstance (mymap .values (), ValuesView )
1868
1871
self .assertIsInstance (mymap .items (), Set )
1869
1872
self .assertIsInstance (mymap .items (), ItemsView )
1870
1873
Original file line number Diff line number Diff line change @@ -338,6 +338,9 @@ def test_abc_registry(self):
338
338
self .assertIsInstance (d .values (), collections .abc .ValuesView )
339
339
self .assertIsInstance (d .values (), collections .abc .MappingView )
340
340
self .assertIsInstance (d .values (), collections .abc .Sized )
341
+ self .assertIsInstance (d .values (), collections .abc .Collection )
342
+ self .assertIsInstance (d .values (), collections .abc .Iterable )
343
+ self .assertIsInstance (d .values (), collections .abc .Container )
341
344
342
345
self .assertIsInstance (d .items (), collections .abc .ItemsView )
343
346
self .assertIsInstance (d .items (), collections .abc .MappingView )
You can’t perform that action at this time.
0 commit comments