mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Close #18690: register memoryview with Sequence ABC
This commit is contained in:
parent
a0f169cde8
commit
45163ccce4
4 changed files with 10 additions and 0 deletions
|
|
@ -782,6 +782,8 @@ class TestCollectionABCs(ABCTestCase):
|
|||
self.assertTrue(issubclass(sample, Sequence))
|
||||
self.assertIsInstance(range(10), Sequence)
|
||||
self.assertTrue(issubclass(range, Sequence))
|
||||
self.assertIsInstance(memoryview(b""), Sequence)
|
||||
self.assertTrue(issubclass(memoryview, Sequence))
|
||||
self.assertTrue(issubclass(str, Sequence))
|
||||
self.validate_abstract_methods(Sequence, '__contains__', '__iter__', '__len__',
|
||||
'__getitem__')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue