Current File : //opt/imh-python/lib/python2.7/test/test_modulefinder.pyo
�
��Wc@s=ddlZddlZddlZddlZddlZddlmZyeWn!e	k
rwddl
mZnXddlZej
�Zeejjej�gZdddddgdgd	gd
gZddddddgdgd	gdgZddd
ddddgdggdgZddddddddddg	dggdgZddddd
ddddddddgggdgZddddd
ddddddd dd!g
ggd"gZdddgd#ggd$gZd%�Zd&�Zd'ejfd(��YZd)�Zed*kr9ej �ndS(+i����N(ttest_support(tSetsa.moduletatsystbtcsb.somethings�a/__init__.py
a/module.py
                                from b import something
                                from c import something
b/__init__.py
                                from sys import *
t
__future__sa/__init__.py
a/module.py
                                from b import something
                                from c import something
b/__init__.py
                                from __future__ import absolute_import
                                from sys import *
sa.bsa.ctmymoduletblahblahsmymodule.py
a/__init__.py
                                import blahblah
                                from a import b
                                import c
a/module.py
                                import sys
                                from a import b as x
                                from a.c import sillyname
a/b.py
a/c.py
                                from a.module import x
                                import mymodule as sillyname
                                from sys import version_info
sb.xsb.ysb.zt
exceptionss�mymodule.py
a/__init__.py
a/module.py
                                from __future__ import absolute_import
                                import sys # sys
                                import blahblah # fails
                                import exceptions # exceptions
                                import b.x # b.x
                                from b import y # b.y
                                from b.z import * # b.z.*
a/exceptions.py
a/sys.py
                                import mymodule
a/b/__init__.py
a/b/x.py
a/b/y.py
a/b/z.py
b/__init__.py
                                import z
b/unused.py
b/x.py
b/y.py
b/z.py
sa.b.ysa.b.zsa.b.cs
a.b.c.moduleCsa.b.c.dsa.b.c.esa.b.xs�mymodule.py
a/__init__.py
                                from .b import y, z # a.b.y, a.b.z
a/module.py
                                from __future__ import absolute_import # __future__
                                import exceptions # exceptions
a/exceptions.py
a/sys.py
a/b/__init__.py
                                from ..b import x # a.b.x
                                #from a.b.c import moduleC
                                from .c import moduleC # a.b.moduleC
a/b/x.py
a/b/y.py
a/b/z.py
a/b/g.py
a/b/c/__init__.py
                                from ..c import e # a.b.c.e
a/b/c/moduleC.py
                                from ..c import d # a.b.c.d
a/b/c/d.py
a/b/c/e.py
a/b/c/x.py
sa.syssa.b.c.fs	a.anothers�mymodule.py
a/__init__.py
                                from . import sys # a.sys
a/another.py
a/module.py
                                from .b import y, z # a.b.y, a.b.z
a/exceptions.py
a/sys.py
a/b/__init__.py
                                from .c import moduleC # a.b.c.moduleC
                                from .c import d # a.b.c.d
a/b/x.py
a/b/y.py
a/b/z.py
a/b/c/__init__.py
                                from . import e # a.b.c.e
a/b/c/moduleC.py
                                #
                                from . import f   # a.b.c.f
                                from .. import x  # a.b.x
                                from ... import another # a.another
a/b/c/d.py
a/b/c/e.py
a/b/c/f.py
sa.bars�a/__init__.py
                                def foo(): pass
a/module.py
                                from . import foo
                                from . import bar
cCs/tjj|�}tjj|�t|d�S(Ntw(tostpathtdirnamet	distutilstdir_utiltmkpathtopen(RR
((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyt	open_file�scCs�d}z�x�|j�D]r}|jd�s:|jd�rT|j|j�d�q|rg|j�nttjj	t
|j���}qWWd|r�|j�nXdS(Nt s	s
(tNonet
splitlinest
startswithtwritetstriptcloseRRRtjointTEST_DIR(tsourcetofitline((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pytcreate_package�s
)tModuleFinderTestcBsqeZed�Zd�Zd�Zeedd
�rfd�Z	d�Z
d�Zd�Zd�Z
nd	�ZRS(cCs�|\}}}}}t|�z�tjdt�}|j|�|rT|j�nt|�}t|jj��}	t	|	|�}
t	||	�}|j
|
|fggf�|j�\}}
|j
||�|j
|
|�Wdtj
jt�XdS(NR(RtmodulefindertModuleFindert	TEST_PATHtimport_hooktreporttsettmodulestkeystlisttassertEqualtany_missing_maybeRRtremove_treeR(tselftinfoR%timport_thisR'tmissingt
maybe_missingRtmftfoundtmoretlesstbadtmaybe((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyt_do_test�s 


cCs|jt�dS(N(R8tpackage_test(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_packagescCs|jt�dS(N(R8t
maybe_test(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyt
test_maybestabsolute_importcCs|jt�dS(N(R8tmaybe_test_new(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_maybe_new
scCs|jt�dS(N(R8tabsolute_import_test(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_absolute_imports
scCs|jt�dS(N(R8trelative_import_test(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_relative_importsscCs|jt�dS(N(R8trelative_import_test_2(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_relative_imports_2scCs|jt�dS(N(R8trelative_import_test_3(R-((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_relative_imports_3scCs6dddgggdtd�g}|j|�dS(NRRsVa.py
                                %r
                                import b
b.py
iii(trangeR8(R-textended_opargs_test((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyttest_extended_opargss
	N(t__name__t
__module__tFalseR8R:R<tgetattrRRR?RARCRERGRJ(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyR �s						cCs'tjjtjj�tjt�dS(N(Rtlogt
set_thresholdtWARNRtrun_unittestR (((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyt	test_main&st__main__(!RRtunittesttdistutils.dir_utilRttempfilettestRR&t	NameErrortsetsRR!tmkdtempRRR
t__file__R#R;R>R9R@RBRDRFRRtTestCaseR RSRKtmain(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_modulefinder.pyt<module>s�
																		D