← Back
Editing: test_deprecate.cpython-38.pyc
U W[� � @ sN d Z ddlmZmZ ddlZddlZddlZddlZddlm Z ddlm Z mZ zddlm Z W n ek rx dZ Y nX ddlmZ ddlmZ dd lmZ dd lmZmZmZmZmZmZmZmZmZ ddlmZm Z ddl!m"Z" dd l#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, G dd� de-�Z.G dd� de,�Z/G dd� de,�Z0G dd� de*e,�Z1G dd� de,�Z2dd� Z3dd� Z4G d d!� d!e,�Z5ee"d"d#d$d%��G d&d'� d'e-��Z6G d(d)� d)e-�Z7G d*d+� d+e,�Z8G d,d-� d-e,�Z9G d.d/� d/e,�Z:ej;d0k�r.e&e<��=� �>d1�Z?i Z@e e?jAe@� e@d2 ZBndd3l+mCZC G d4d2� d2eC�ZBdS )5zI Tests for Twisted's deprecation framework, L{twisted.python.deprecate}. � )�division�absolute_importN)�normcase)�simplefilter�catch_warnings)�invalidate_caches)� deprecate)�_getDeprecationWarningString)�DEPRECATION_WARNING_FORMAT) �getDeprecationWarningString� deprecated�_appendToDocstring�_getDeprecationDocstring�_fullyQualifiedName�_mutuallyExclusiveArguments�deprecatedProperty�_passedArgSpec�_passedSignature)�_PY3�execfile)�Version)�platform)�FilePath)�deprecatedattributes)�TwistedModulesMixin)�SynchronousTestCasec @ s e Zd ZdZdd� Zdd� ZdS )�_MockDeprecatedAttributezq Mock of L{twisted.python.deprecate._DeprecatedAttribute}. @ivar value: The value of the attribute. c C s || _ d S �N��value��selfr � r"