Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/testing/__pycache__/ipunittest.cpython-39.pyc
Ðазад
a o�h� � @ st d Z ddlZddlZddlmZmZmZ ddlmZ dd� Z G dd� de �ZG d d � d e �Zdd� Z e� Ze� ZdS ) a� Experimental code for cleaner support of IPython syntax with unittest. In IPython up until 0.10, we've used very hacked up nose machinery for running tests with IPython special syntax, and this has proved to be extremely slow. This module provides decorators to try a different approach, stemming from a conversation Brian and I (FP) had about this problem Sept/09. The goal is to be able to easily write simple functions that can be seen by unittest as tests, and ultimately for these to support doctests with full IPython syntax. Nose already offers this based on naming conventions and our hackish plugins, but we are seeking to move away from nose dependencies if possible. This module follows a different approach, based on decorators. - A decorator called @ipdoctest can mark any function as having a docstring that should be viewed as a doctest, but after syntax conversion. Authors ------- - Fernando Perez <Fernando.Perez@berkeley.edu> � N)� DocTestFinder� DocTestRunner�TestResults)�InteractiveShellc C s dd� | j �� D �S )zmCount number of failures in a doctest runner. Code modeled after the summarize() method in doctest. c S s"