https://github.com/python/cpython/commit/3930b7c2589d33cb1542e13c7b302149b5a74db1 commit: 3930b7c2589d33cb1542e13c7b302149b5a74db1 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: sobolevn <m...@sobolevn.me> date: 2025-03-17T09:01:40Z summary:
[3.13] gh-131339: test PyBytes_Size for a zero-size bytes object (GH-131340) (#131343) 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 d5f047bcf18277..ab6f091d0d9238 100644 --- a/Lib/test/test_capi/test_bytes.py +++ b/Lib/test/test_capi/test_bytes.py @@ -93,6 +93,7 @@ def test_size(self): # Test PyBytes_Size() size = _testlimitedcapi.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