[New-bugs-announce] [issue7553] test_long_future is faulty
Florent Xicluna
report at bugs.python.org
Sun Dec 20 19:27:00 CET 2009
New submission from Florent Xicluna <laxyf at yahoo.fr>:
This test do not test "true division" contrary to what is claimed.
for zero in ["huge / 0", "huge / 0L", "mhuge / 0", "mhuge / 0L"]:
self.assertRaises(ZeroDivisionError, eval, zero, namespace)
Because it uses the module "unittest" to eval the expression.
And __future__.division is not active in unittest module.
Other tests were OK.
----------
components: Tests
messages: 96710
nosy: flox
priority: low
severity: normal
status: open
title: test_long_future is faulty
type: behavior
versions: Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7553>
_______________________________________
More information about the New-bugs-announce
mailing list