mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-35712: Make using NotImplemented in a boolean context issue a deprecation warning (GH-13195)
This commit is contained in:
parent
ae75a29435
commit
469325c30e
10 changed files with 64 additions and 12 deletions
|
@ -2528,7 +2528,7 @@ class TestBufferProtocol(unittest.TestCase):
|
|||
values = [INT(9), IDX(9),
|
||||
2.2+3j, Decimal("-21.1"), 12.2, Fraction(5, 2),
|
||||
[1,2,3], {4,5,6}, {7:8}, (), (9,),
|
||||
True, False, None, NotImplemented,
|
||||
True, False, None, Ellipsis,
|
||||
b'a', b'abc', bytearray(b'a'), bytearray(b'abc'),
|
||||
'a', 'abc', r'a', r'abc',
|
||||
f, lambda x: x]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue