[Python-checkins] r81391 - python/branches/py3k-cdecimal/Lib/test/decimal_extended_tests/ctx-deccheck.py
stefan.krah
python-checkins at python.org
Fri May 21 10:35:21 CEST 2010
Author: stefan.krah
Date: Fri May 21 10:35:21 2010
New Revision: 81391
Log:
Existing methods of the disagreement-handler object must
be overridden.
Modified:
python/branches/py3k-cdecimal/Lib/test/decimal_extended_tests/ctx-deccheck.py
Modified: python/branches/py3k-cdecimal/Lib/test/decimal_extended_tests/ctx-deccheck.py
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/decimal_extended_tests/ctx-deccheck.py (original)
+++ python/branches/py3k-cdecimal/Lib/test/decimal_extended_tests/ctx-deccheck.py Fri May 21 10:35:21 2010
@@ -303,6 +303,8 @@
def default(self, result, operands):
return False
+ __eq__ = __ne__ = __ge__ = __gt__ = __le__ = __lt__ = \
+ __repr__ = __str__ = default
dhandler_cdec = dHandlerCdec()
@@ -314,7 +316,6 @@
# return getattr(dhandler_obj, funcname, dhandler_obj.default)(result, operands)
-
def verify(result, funcname, operands):
"""Verifies that after operation 'funcname' with operand(s) 'operands'
result[0] and result[1] as well as the context flags have the same
More information about the Python-checkins
mailing list