mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Now that int is subclassable, have to change a test that tests for
non-subclassability. (More tests for number subclassing should follow.)
This commit is contained in:
parent
bef1417f9f
commit
8aea0cc94e
1 changed files with 2 additions and 2 deletions
|
@ -684,12 +684,12 @@ def errors():
|
|||
verify(0, "inheritance from object and Classic should be illegal")
|
||||
|
||||
try:
|
||||
class C(int):
|
||||
class C(type(len)):
|
||||
pass
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
verify(0, "inheritance from int should be illegal")
|
||||
verify(0, "inheritance from CFunction should be illegal")
|
||||
|
||||
try:
|
||||
class C(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue