Message96716
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" ... |
|
Date |
User |
Action |
Args |
2009-12-20 19:01:31 | flox | set | recipients:
+ flox, benjamin.peterson |
2009-12-20 19:01:31 | flox | set | messageid: <1261335691.67.0.019960143049.issue7553@psf.upfronthosting.co.za> |
2009-12-20 19:01:29 | flox | link | issue7553 messages |
2009-12-20 19:01:29 | flox | create | |
|