(self)
| 2371 | contains_bytes = True |
| 2372 | |
| 2373 | def test_mixed_cmp(self): |
| 2374 | a = self.type2test(b'ab') |
| 2375 | for t in bytes, bytearray, BytesSubclass, ByteArraySubclass: |
| 2376 | with self.subTest(t.__name__): |
| 2377 | self._assert_cmp(a, t(b'ab'), 0) |
| 2378 | self._assert_cmp(a, t(b'a'), 1) |
| 2379 | self._assert_cmp(a, t(b'ac'), -1) |
| 2380 | |
| 2381 | class ByteArrayAsStringTest(FixedStringTest, unittest.TestCase): |
| 2382 | type2test = bytearray |
nothing calls this directly
no test coverage detected