Florent Xicluna <la...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7553>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to