Skip to content

[WIP] gh-129813: Add PyBytesWriter C API (version 2) #131520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Lint CI
  • Loading branch information
vstinner committed Mar 20, 2025
commit d5cf16ad32ed97d376c688d293c2659c11dc746d
6 changes: 3 additions & 3 deletions Lib/test/test_capi/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@ def test_extend(self):
writer.extend(3, b'456')
self.assertEqual(writer.finish(), b'number=123456')

def test_hello_world(self):
def test_hello_world_example(self):
self.assertEqual(_testcapi.byteswriter_hello_world(),
b'Hello World')

def test_alloc(self):
def test_alloc_example(self):
self.assertEqual(_testcapi.byteswriter_alloc(),
b'abc')

def test_extend(self):
def test_extend_example(self):
self.assertEqual(_testcapi.byteswriter_extend(),
b'Hello World')

Expand Down