Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/__pycache__/components.cpython-311.pyc

�

�܋f9��X�dZddlZddlZddlmZddlmZddlmZGd�d��Z	dS)z3
Helpers for working with Zope and its components.
�N)�Set)�getSiteManager)�
Componentsc�|�eZdZUdZdZeed<e��Ze	ded<dZ
eed<d�Zd�Ze
d���Zd	S)
�TestComponentsz�
    A helper for providing a sterile registry when testing
    with ``zope.component``.

    Instantiation will install an empty registry that will be returned
    by :func:`zope.component.getSiteManager`.
    F�__test__�	instances�atexit_setupc���td���_tj�fd����_�j�����jjs'tj
�j	��d�j_dSdS)N�Testingc����jS)N)�registry��selfs��h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/components.py�<lambda>z)TestComponents.__init__.<locals>.<lambda>s	���d�m��T)rrr�sethook�oldr	�add�	__class__r
�atexit�registerrs`r�__init__zTestComponents.__init__s}���$.�y�$9�$9��
�-�5�6K�6K�6K�6K�L�L�������4� � � ��~�*�	/��O�D�K�(�(�(�*.�D�N�'�'�'�	/�	/rc�l�tj|j��|j�|��dS)z�
        Remove the sterile registry and replace it with the one that
        was in place before this :class:`TestComponents` was
        instantiated.
        N)rrrr	�removers r�	uninstallzTestComponents.uninstall!s3��	��t�x�(�(�(�����d�#�#�#�#�#rc�@�|jrtjd��dSdS)Nz5TestComponents instances not uninstalled by shutdown!)r	�warnings�warn)�clss rrzTestComponents.atexit*s7���=�	��M�G�
�
�
�
�
�	�	rN)�__name__�
__module__�__qualname__�__doc__r�bool�__annotations__�setr	rr
rr�classmethodr�rrrrs�����������H�d����'*�s�u�u�I�s�#�$�,�,�,��L�$����/�/�/�$�$�$�����[���rr)
r%rr�typingr�zope.componentr�zope.interface.registryrrr*rr�<module>r.s������
�
�
�����������)�)�)�)�)�)�.�.�.�.�.�.�#�#�#�#�#�#�#�#�#�#r

Hacked By AnonymousFox1.0, Coded By AnonymousFox