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 pooryorick
Recipients pooryorick
Date 2009-06-30.15:09:09
SpamBayes Score 8.919858e-06
Marked as misclassified No
Message-id <1246374551.71.0.655434406445.issue6363@psf.upfronthosting.co.za>
In-reply-to
Content
here is a monkey patch to work around the problem:

import __future__
import doctest
if sys.version_info.major > 2:
        _extract_future_flags_old = doctest._extract_future_flags
        def _extract_future_flags(globs):
                flags = _extract_future_flags_old(globs)
                flags = flags & ~__future__.division.compiler_flag
                flags = flags & ~__future__.absolute_import.compiler_
                flags = flags & ~__future__.nested_scopes.compiler_fl
                flags = flags & ~__future__.print_function.compiler_f
                flags = flags & ~__future__.unicode_literals.compiler
                flags = flags & ~__future__.with_statement.compiler_f
                return flags
        doctest._extract_future_flags = _extract_future_flags
History
Date User Action Args
2009-06-30 15:09:11pooryoricksetrecipients: + pooryorick
2009-06-30 15:09:11pooryoricksetmessageid: <1246374551.71.0.655434406445.issue6363@psf.upfronthosting.co.za>
2009-06-30 15:09:09pooryoricklinkissue6363 messages
2009-06-30 15:09:09pooryorickcreate