ó «©\Tc@s dZddlZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl mZddlmZdZd Zejdkr×ejd ƒZnejd ƒZd Zdejfd„ƒYZdS(sdevelop tests iÿÿÿÿN(tDistutilsError(tStringIO(ttest(t easy_install(t Distributionsºfrom setuptools import setup setup(name='foo', packages=['name', 'name.space', 'name.space.tests'], namespace_packages=['name'], test_suite='name.space.tests.test_suite', ) sò# -*- coding: Latin-1 -*- # Söme Arbiträry Ãœnicode to test Issüé 310 try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) isUTF-8sLatin-1s½import unittest class TestTest(unittest.TestCase): def test_test(self): print "Foo" # Should fail under Python 3 unless 2to3 is used test_suite = unittest.makeSuite(TestTest) t TestTestTestcBs#eZd„Zd„Zd„ZRS(cCsútjdksttdƒr"dStjƒ|_tjtjj |jdƒƒtjtjj |jddƒƒtjtjj |jdddƒƒtjj |jdƒ}t |dƒ}|j t ƒ|j ƒtjƒ|_tjj |jddƒ}t |d ƒ}|j tƒ|j ƒtjj |jdddƒ}t |dƒ}|j d ƒ|j ƒtjj |jddddƒ}t |dƒ}|j tƒ|j ƒtj|jƒtj|_tjƒt_tj|_tjƒt_dS( Ns2.6t real_prefixtnametspacettestsssetup.pytwts __init__.pytwbs#empty (tsystversionthasattrttempfiletmkdtemptdirtostmkdirtpathtjointopentwritetSETUP_PYtclosetgetcwdtold_cwdtNS_INITtTEST_PYtchdirtsitet USER_BASEtold_baset USER_SITEtold_site(tselftsetuptftinit((sG/opt/freeware/lib/python2.7/site-packages/setuptools/tests/test_test.pytsetUp2s8"%      !    cCs~tjdksttdƒr"dStj|jƒtj|jƒtjt j ƒtjt j ƒ|j t _ |j t _ dS(Ns2.6R(R R RRRRtshutiltrmtreeRRR R"R!R#(R$((sG/opt/freeware/lib/python2.7/site-packages/setuptools/tests/test_test.pyttearDownWs c Csätjdksttdƒr"dSttddddddgddgd d d tƒƒ}d |_t|ƒ}d |_|j ƒt j |_ d |_tj }tƒt_ z&y|jƒWntk rÑnXWd|t_ XdS(Ns2.6RRtfootpackagess name.spacesname.space.teststnamespace_packagest test_suitesname.space.tests.test_suitetuse_2to3ssetup.pyi(R R RRtdicttTruet script_nameRtusertensure_finalizedRR"t install_dirtstdoutRtrunt SystemExit(R$tdisttcmdt old_stdout((sG/opt/freeware/lib/python2.7/site-packages/setuptools/tests/test_test.pyt test_testbs,            (t__name__t __module__R(R+R=(((sG/opt/freeware/lib/python2.7/site-packages/setuptools/tests/test_test.pyR0s % (i(t__doc__R RR)RtunittestRtdistutils.errorsRtsetuptools.compatRtsetuptools.command.testRtsetuptools.commandRteasy_install_pkgtsetuptools.distRRRt version_infotdecodetencodeRtTestCaseR(((sG/opt/freeware/lib/python2.7/site-packages/setuptools/tests/test_test.pyts  0