diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2023-08-07 15:51:43 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-07 15:51:43 (GMT) |
| commit | 16c9415fba4972743f1944ebc44946e475e68bc4 (patch) | |
| tree | 3fcc78ed09fa2db6bc0b833fd29feabb619cb8c0 /Lib/test/test_bytes.py | |
| parent | 85793278793708ad6b7132a54ac9fb4b2c5bcac1 (diff) | |
| download | cpython-16c9415fba4972743f1944ebc44946e475e68bc4.zip cpython-16c9415fba4972743f1944ebc44946e475e68bc4.tar.gz cpython-16c9415fba4972743f1944ebc44946e475e68bc4.tar.bz2 | |
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.
Diffstat (limited to 'Lib/test/test_bytes.py')
| -rw-r--r-- | Lib/test/test_bytes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 7c62b72..afd506f 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -1354,7 +1354,7 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase): except ValueError: pass try: - setitem(b, 0, None) + setitem(b, 0, object()) self.fail("Didn't raise TypeError") except TypeError: pass |
