(self)
| 1974 | collections_abc.ByteString |
| 1975 | |
| 1976 | def test_Buffer(self): |
| 1977 | for sample in [bytes, bytearray, memoryview]: |
| 1978 | self.assertIsInstance(sample(b"x"), Buffer) |
| 1979 | self.assertIsSubclass(sample, Buffer) |
| 1980 | for sample in [str, list, tuple]: |
| 1981 | self.assertNotIsInstance(sample(), Buffer) |
| 1982 | self.assertNotIsSubclass(sample, Buffer) |
| 1983 | self.validate_abstract_methods(Buffer, '__buffer__') |
| 1984 | |
| 1985 | def test_MutableSequence(self): |
| 1986 | for sample in [tuple, str, bytes]: |
nothing calls this directly
no test coverage detected