mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
gh-71339: Use new assertion methods in tests (GH-129046)
This commit is contained in:
parent
bb244fd33d
commit
2602d8ae98
117 changed files with 407 additions and 445 deletions
|
@ -2879,11 +2879,11 @@ class TestBufferProtocol(unittest.TestCase):
|
|||
def test_memoryview_repr(self):
|
||||
m = memoryview(bytearray(9))
|
||||
r = m.__repr__()
|
||||
self.assertTrue(r.startswith("<memory"))
|
||||
self.assertStartsWith(r, "<memory")
|
||||
|
||||
m.release()
|
||||
r = m.__repr__()
|
||||
self.assertTrue(r.startswith("<released"))
|
||||
self.assertStartsWith(r, "<released")
|
||||
|
||||
def test_memoryview_sequence(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue