This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients benjamin.peterson, flox
Date 2009-12-20.19:01:29
SpamBayes Score 7.319827e-06
Marked as misclassified No
Message-id <1261335691.67.0.019960143049.issue7553@psf.upfronthosting.co.za>
In-reply-to
Content
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" ...
History
Date User Action Args
2009-12-20 19:01:31floxsetrecipients: + flox, benjamin.peterson
2009-12-20 19:01:31floxsetmessageid: <1261335691.67.0.019960143049.issue7553@psf.upfronthosting.co.za>
2009-12-20 19:01:29floxlinkissue7553 messages
2009-12-20 19:01:29floxcreate