gh-106197: Deduplicate tests in test_buffer (#106198)

This commit is contained in:
Nikita Sobolev 2023-06-28 17:43:41 +03:00 committed by GitHub
parent 18f51f91e2
commit c283a0cff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4722,7 +4722,7 @@ class TestPythonBufferProtocol(unittest.TestCase):
with self.assertRaises(ValueError):
c.buffer.tobytes()
def test_multiple_inheritance_buffer_last(self):
def test_multiple_inheritance_buffer_last_raising(self):
class A:
def __buffer__(self, flags):
raise RuntimeError("should not be called")