projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef1417
)
Now that int is subclassable, have to change a test that tests for
author
Guido van Rossum
<guido@python.org>
Wed, 29 Aug 2001 15:48:43 +0000
(15:48 +0000)
committer
Guido van Rossum
<guido@python.org>
Wed, 29 Aug 2001 15:48:43 +0000
(15:48 +0000)
non-subclassability. (More tests for number subclassing should follow.)
Lib/test/test_descr.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_descr.py
b/Lib/test/test_descr.py
index 1b53bb64c66830af486e38ca45f9f2300d7a391f..54b03b2f9bc03f72fa27e36df64ba0c539c72a50 100644
(file)
--- a/
Lib/test/test_descr.py
+++ b/
Lib/test/test_descr.py
@@
-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):