8000 gh-131357: Add tests for zero-sized bytes objects in test_bytes.py by abstractedfox · Pull Request #134234 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131357: Add tests for zero-sized bytes objects in test_bytes.py #134234

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

Merged
merged 9 commits into from
May 20, 2025
Merged
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 trailing whitespace
  • Loading branch information
abstractedfox committed May 19, 2025
commit 33e688ac5a7d14d97fd96aa017a5d5b81789c2b4
4 changes: 2 additions & 2 deletions Lib/test/test_capi/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_check(self):
self.assertFalse(check(object()))
self.assertTrue(check(b''))

# CRASHES check(NULL) #PyBytes_Check() expects PyObject*
# CRASHES check(NULL)

def test_checkexact(self):
# Test PyBytes_CheckExact()
Expand All @@ -46,7 +46,7 @@ def test_checkexact(self):
self.assertFalse(check(object()))
self.assertTrue(check(b''))

# CRASHES check(NULL) #PyBytes_CheckExact() expects PyObject*
# CRASHES check(NULL)

def test_fromstringandsize(self):
# Test PyBytes_FromStringAndSize()
Expand Down
Loading
0