Skip to content

Commit 9c8dfce

Browse files
[3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728)
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.. (cherry picked from commit 16c9415)
1 parent 72534ca commit 9c8dfce

13 files changed

+1955
-299
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)