File: //lib/python3.6/site-packages/google/protobuf/internal/__pycache__/testing_refleaks.cpython-36.pyc
3
���h� � @ s� d Z ddlZddlZyddlZW n ek
r< ddlZY nX yddlZW n ek
rf ddlZY nX G dd� dej�ZG dd� dej �Z
eed�r�e
Zej
Znej Zdd � ZdS )
a[ A subclass of unittest.TestCase which checks for reference leaks.
To use:
- Use testing_refleak.BaseTestCase instead of unittest.TestCase
- Configure and compile Python with --with-pydebug
If sys.gettotalrefcount() is not available (because Python was built without
the Py_DEBUG option), then this module is a no-op and tests will run normally.
� Nc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�LocalTestResultzHA TestResult which forwards events to a parent object, except for Skips.c C s t jj| � || _d S )N)�unittest�
TestResult�__init__�
parent_result)�selfr � r �&/usr/lib/python3.6/testing_refleaks.pyr : s zLocalTestResult.__init__c C s | j j||� d S )N)r �addError)r �test�errorr r r r
>