tests/sitecustomize.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 19 Apr 2014 12:26:34 -0700
changeset 21296 cd8776030833
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
run-tests: create classes for representing tests Currently, the state for an individual test is scattered across a number of functions and variables. This patch begins a process of isolating a single test's state into instances of a class. It does this by establishing a new Test base class and child classes for Python tests and T tests. The class currently has a run() API that proxies into the existing "runner" functions. Upcoming patches will move the logic for each test type into the class.

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass