HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/python/test/__pycache__/test_dist3.cpython-38.pyc
U


W[B�@s\dZddlmZmZddlZddlZddlmZddlm	Z	ddl
mZGdd�de�ZdS)	z$
Tests for L{twisted.python.dist3}.
�)�absolute_import�divisionN)�TestCase)�_PY3)�notPortedModulesc@s2eZdZdZdd�Zdd�Zer(de_nde_dS)	�ModulesToInstallTestsz(
    Tests for L{notPortedModules}.
    cCs�tj�tj�tj��}tD]x}|�d�}|dd7<tjj|f|��}|�d�dg}tjj|f|��}|�tj�	|�p�tj�	|�d�
|��qdS)zI
        All modules listed in L{notPortedModules} exist on Py2.
        �.����.py�__init__.pyzModule {0} does not existN)�os�path�dirname�twisted�__file__r�split�joinZ
assertTrue�exists�format��self�root�moduleZsegmentsr
ZalternateSegmentsZpackagePath�r�@/usr/lib/python3/dist-packages/twisted/python/test/test_dist3.py�
test_exists

�z ModulesToInstallTests.test_existcCs�tj�tj�tj��}tD]x}|�d�}|dd7<tjj|f|��}|�d�dg}tjj|f|��}|�tj�	|�p�tj�	|�d�
|��qdS)zP
        All modules listed in L{notPortedModules} do not exist on Py3.
        rr	r
rzModule {0} existsN)rr
rrrrrrZassertFalserrrrrr�
test_notexist%s

�z#ModulesToInstallTests.test_notexistzOnly on Python 2zOnly on Python 3N)�__name__�
__module__�__qualname__�__doc__rrr�skiprrrrrsr)
r Z
__future__rrrrZtwisted.trial.unittestrZtwisted.python.compatrZtwisted.python._setuprrrrrr�<module>s