U Wg;@sPddlmZddlmZddlZddlZddlmZddlZGdddeZ dS))absolute_import)print_functionN)TestCasec@seZdZddZdS) VersionTestsc Csdd}z |d}Wn4tk rH}z|dt|W5d}~XYnXdtj|f}t|}|}W5QRX| |t j dS)NcSstj|r|Sg}tjtjt}tdD]T}dg|}|g||g}tjj|}tj|}||tj|r0|Sq0t d|dt |dS)N z..zCould not find file z ; checked ) ospathexistsabspathdirname__file__rangejoinappendAssertionErrorstr)nameZtriedhereiuprfnamerK/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/test_version.pyfind_dominating_files        z7VersionTests.test_version..find_dominating_filezsetup.pyz.Unable to find setup.py; must be out of tree. z%s %s --version) rZskipTestrsys executablerpopenreadstripZ assertEqualgreenlet __version__)selfrsetup_pyeZ invoke_setupfZsversionrrr test_versions $ zVersionTests.test_versionN)__name__ __module__ __qualname__r%rrrrr sr) __future__rrrrZunittestrZNonLeakingTestCaserrrrrrs