Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zope/interface/tests/__pycache__/__init__.cpython-39.pyc
Ðазад
a i�h� � @ sr d dl mZ G dd� d�ZG dd� d�ZG dd� d�Zzd dlmZ W n eyf G d d � d �ZY n0 ejZdS )� )�_should_attempt_c_optimizationsc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �OptimizationTestMixinzBMixin testing that C optimizations are used when appropriate. c C s t �dS )zMReturn the implementation in use, without 'Py' or 'Fallback' suffix. N��NotImplementedError��self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zope/interface/tests/__init__.py�_getTargetClass s z%OptimizationTestMixin._getTargetClassc C s t �dS )z3Return the fallback Python implementation. Nr r r r r �_getFallbackClass s z'OptimizationTestMixin._getFallbackClassc C s4 | � � }| �� }t� r$| �||� n| �||� d S �N)r r r ZassertIsNotZassertIs)r �used�fallbackr r r �test_optimizations s z(OptimizationTestMixin.test_optimizationsN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r c @ s e Zd Zdd� Zdd� ZdS )�SubclassableMixinc C s t �dS )zLReturn the implementation in use without 'Py' or 'Fallback' suffix. Nr r r r r r ! s z!SubclassableMixin._getTargetClassc C s | � � }G dd� d|�}d S )Nc @ s e Zd ZdS )z4SubclassableMixin.test_can_subclass.<locals>.DerivedN)r r r r r r r �Derived) s r )r )r �klassr r r r �test_can_subclass&