Skip to content

Commit 16c9415

Browse files
gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179)
Cover all the Mapping Protocol, almost all the Sequence Protocol (except PySequence_Fast) and a part of the Object Protocol. Move existing tests to Lib/test/test_capi/test_abstract.py and Modules/_testcapi/abstract.c. Add also tests for PyDict C API.
1 parent 8579327 commit 16c9415

13 files changed

+2174
-297
lines changed

Lib/test/test_bytes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ def do_tests(setitem):
13541354
except ValueError:
13551355
pass
13561356
try:
1357-
setitem(b, 0, None)
1357+
setitem(b, 0, object())
13581358
self.fail("Didn't raise TypeError")
13591359
except TypeError:
13601360
pass

0 commit comments

Comments
 (0)