From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:13:57 +0000 (-0700) Subject: [3.12] gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (#106206) X-Git-Tag: v3.12.0b4~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed2114f1cf927206d08b3bc824b2fc3d515f5eae;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (#106206) gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (cherry picked from commit c283a0cff5603540f06d9017e484b3602cc62e7c) Co-authored-by: Nikita Sobolev --- diff --git a/Lib/test/test_buffer.py b/Lib/test/test_buffer.py index 94fc9d4436b7..9f00bd5e7619 100644 --- a/Lib/test/test_buffer.py +++ b/Lib/test/test_buffer.py @@ -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")