Commit dcb00db9 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 3e866e89
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
import sys import sys
# fool Python we are in distutils # fool Python we are in distutils
if sys.version_info >= (3,): if sys.version_info >= (3,):
__package__='distutils' __name__='distutils.cytest_relativeimport_T542'
else: else:
__package__=b'distutils' __name__=b'distutils.cytest_relativeimport_T542'
from distutils import cmd, core, version from distutils import cmd, core, version
from .core import * from .core import *
......
from distutils import core, version 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 * from . import *
__doc__ = """ __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