projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c92a4
)
backport change from trunk
author
Benjamin Peterson
<benjamin@python.org>
Wed, 16 Dec 2009 04:27:27 +0000
(
04:27
+0000)
committer
Benjamin Peterson
<benjamin@python.org>
Wed, 16 Dec 2009 04:27:27 +0000
(
04:27
+0000)
Lib/test/test_descr.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_descr.py
b/Lib/test/test_descr.py
index e9a505747513ce44786e64625b1d2cfd9de16310..3616642a2ff54586858a1b3dddf5071d877015c4 100644
(file)
--- a/
Lib/test/test_descr.py
+++ b/
Lib/test/test_descr.py
@@
-1776,6
+1776,8
@@
order (MRO) for bases """
# Safety test for __cmp__
def unsafecmp(a, b):
+ if not hasattr(a.__class__, "__cmp__"):
+ return
try:
a.__class__.__cmp__(a, b)
except TypeError: