Commit 58bbbc39 authored by Haoyu Bai's avatar Haoyu Bai Committed by Robert Bradshaw

better way to fool Python in the tests (now works in 2.5)

parent 95916a23
......@@ -2,9 +2,9 @@
import sys
# fool Python we are in distutils
if sys.version_info >= (3,):
__package__='distutils'
__name__='distutils.cytest_relativeimport_T542'
else:
__package__=b'distutils'
__name__=b'distutils.cytest_relativeimport_T542'
from distutils import cmd, core, version
from .core import *
......
from distutils import core, version
__package__ = 'distutils.core' # fool Python we are in distutils
__name__='distutils.core.cytest_relativeimport_T542' # fool Python we are in distutils
from . import *
__doc__ = """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment