Closed GoogleCodeExporter closed 9 years ago
To clarify, "import __builtin__" is automatically converted by 2to3. But where
__builtin__ is used in a function, as in "setattr(__builtin__,
self._result_var, value)", 2to3 doesn't attempt to convert it.
Suggested compatibility shim: "import __builtin__ as builtin_mod", then use
builtin_mod where "__builtin__" is currently used. I've committed this in my
own repository if you want to pull from there:
http://code.google.com/r/takowl-python-nose/source/detail?r=7015726b9f8938d5eaad
13225a84df8a20edfcc6
Original comment by tak...@gmail.com
on 9 Jan 2011 at 12:35
Just tested: this passes all tests on Python 2.6* and 3.1.
*There was actually one failure in 2.6:
Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address
'nose.python-hosting.com' not found: [Errno -5] No address associated with
hostname.
But that is down to the domain no longer being resolvable. I have updated this
in a further commit, after which all tests pass.
Original comment by tak...@gmail.com
on 14 Jan 2011 at 10:41
Original comment by jpelle...@gmail.com
on 15 Jan 2011 at 4:43
Original comment by jpelle...@gmail.com
on 20 Jan 2011 at 2:16
Original comment by jpelle...@gmail.com
on 20 Jan 2011 at 2:18
Original issue reported on code.google.com by
tak...@gmail.com
on 8 Jan 2011 at 8:06