]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (#106206)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jun 2023 15:13:57 +0000 (08:13 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 15:13:57 +0000 (15:13 +0000)
gh-106197: Deduplicate tests in `test_buffer` (GH-106198)
(cherry picked from commit c283a0cff5603540f06d9017e484b3602cc62e7c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_buffer.py

index 94fc9d4436b717bed552a2a3d6172fb822f33acf..9f00bd5e76195fba92af96a591df6911bb2f51ba 100644 (file)
@@ -4718,7 +4718,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")