[issue7553] test_long_future is faulty
Florent Xicluna
report at bugs.python.org
Sun Dec 20 20:01:31 CET 2009
Florent Xicluna <laxyf at yahoo.fr> added the comment:
Let me show the issue:
~ $ cat bar.py
def apply_(func, args=(), kw={}):
return func(*args, **kw)
~ $ cat foo.py
from __future__ import division
import bar
def test():
assert eval('1/2') == .5
assert apply(eval, ('1/2',)) == .5
# This test yield AssertionError
assert bar.apply_(eval, ('1/2',)) == .5
test()
~ $ ./python foo.py
Traceback (most recent call last):
File "foo.py", line 11, in <module>
test()
File "foo.py", line 9, in test
assert bar.apply_(eval, ('1/2',)) == .5
AssertionError
Then replace "foo.py" by "test_long_future.py"
and "bar.py" by "Lib/unittest/case.py" ...
----------
resolution: works for me ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7553>
_______________________________________
More information about the Python-bugs-list
mailing list