https://github.com/python/cpython/commit/6e7432f130c05e07e85005673588b17b16da69c2 commit: 6e7432f130c05e07e85005673588b17b16da69c2 branch: 3.12 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: sobolevn <m...@sobolevn.me> date: 2025-03-17T12:20:32Z summary:
[3.12] gh-131339: test PyBytes_Size for a zero-size bytes object (GH-131340) (#131344) gh-131339: test PyBytes_Size for a zero-size bytes object (GH-131340) (cherry picked from commit 3ae67ba97e88d6f066a5b6f0c809f57fe4a1ecbe) Co-authored-by: Nybblista <170842536+nybbli...@users.noreply.github.com> files: M Lib/test/test_capi/test_bytes.py diff --git a/Lib/test/test_capi/test_bytes.py b/Lib/test/test_capi/test_bytes.py index c692ee82d04283..f0326c760c9db0 100644 --- a/Lib/test/test_capi/test_bytes.py +++ b/Lib/test/test_capi/test_bytes.py @@ -92,6 +92,7 @@ def test_size(self): # Test PyBytes_Size() size = _testcapi.bytes_size + self.assertEqual(size(b''), 0) self.assertEqual(size(b'abc'), 3) self.assertEqual(size(BytesSubclass(b'abc')), 3) self.assertRaises(TypeError, size, bytearray(b'abc')) _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com