bpo-35712: Make using NotImplemented in a boolean context issue a deprecation warning (GH-13195)

This commit is contained in:
MojoVampire 2020-03-03 18:50:17 +00:00 committed by GitHub
parent ae75a29435
commit 469325c30e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 64 additions and 12 deletions

View file

@ -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]