[issue15722] PEP 3121, 384 Refactoring applied to decimal module
Stefan Krah
report at bugs.python.org
Sun Aug 19 11:40:17 CEST 2012
Stefan Krah added the comment:
> What specific decimal test is failing?
# Attributes cannot be deleted
for attr in ['prec', 'Emax', 'Emin', 'rounding', 'capitals', 'clamp',
'flags', 'traps']:
self.assertRaises(AttributeError, c.__delattr__, attr)
test test_decimal failed -- Traceback (most recent call last):
File "/home/stefan/pydev/pep-3121-cpython/Lib/test/test_decimal.py", line 3683, in test_invalid_context
self.assertRaises(AttributeError, c.__delattr__, attr)
File "/home/stefan/pydev/pep-3121-cpython/Lib/unittest/case.py", line 571, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/home/stefan/pydev/pep-3121-cpython/Lib/unittest/case.py", line 135, in handle
callable_obj(*args, **kwargs)
TypeError: can't apply this __delattr__ to object object
1 test failed:
test_decimal
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15722>
_______________________________________
More information about the Python-bugs-list
mailing list