bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933)

In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.
This commit is contained in:
Serhiy Storchaka 2019-09-14 12:24:05 +03:00 committed by GitHub
parent d057b896f9
commit 279f44678c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 256 additions and 257 deletions

View file

@ -2269,8 +2269,8 @@ class TestSignatureObject(unittest.TestCase):
test_callable(d.dump)
# static method
test_callable(str.maketrans)
test_callable('abc'.maketrans)
test_callable(bytes.maketrans)
test_callable(b'abc'.maketrans)
# class method
test_callable(dict.fromkeys)