The change of type(None).__name__ from 'None' to 'NoneType' broke this

test in a trivial way.  Fixed.
This commit is contained in:
Guido van Rossum 2001-08-16 08:32:39 +00:00
parent 8098ddbe81
commit 297abadc6b
2 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,10 @@ f() keywords must be strings
h() got an unexpected keyword argument 'e'
h() argument after * must be a sequence
dir() argument after * must be a sequence
None object argument after * must be a sequence
NoneType object argument after * must be a sequence
h() argument after ** must be a dictionary
dir() argument after ** must be a dictionary
None object argument after ** must be a dictionary
NoneType object argument after ** must be a dictionary
dir() got multiple values for keyword argument 'b'
3 512 1
3

View File

@ -780,7 +780,7 @@ SyntaxError: invalid syntax
... yield 1
...
>>> type(f())
<type 'None'>
<type 'NoneType'>
>>> def f():
... if 0:
@ -790,7 +790,7 @@ SyntaxError: invalid syntax
... def f(self):
... yield 2
>>> type(f())
<type 'None'>
<type 'NoneType'>
>>> def f():
... if 0: