module documentation
(source)

Undocumented

Class ​Options Options to the trial command line tool.
Function get​Test​Modules Undocumented
Function is​Test​File Returns true if 'filename' looks like a file containing unit tests. False otherwise. Doesn't care whether filename exists.
Function load​Local​Variables Accepts a filename and attempts to load the Emacs variable declarations from that file, simulating what Emacs does.
Function run Undocumented
Constant TBFORMAT​_MAP Undocumented
Class _​Basic​Options Basic options shared between trial and its local workers.
Class _​Debugger​Not​Found A debugger import failed.
Function _check​Known​Run​Order Check that the given order is a known test running order.
Function _get​Loader Undocumented
Function _get​Suite Undocumented
Function _initial​Debug​Setup Undocumented
Function _make​Runner Return a trial runner class set up with the parameters extracted from config.
Function _maybe​Find​Source​Line Try to find the source line of the given test thing.
Function _parse​Local​Variables Accepts a single line in Emacs local variable declaration format and returns a dict of all the variables {name: value}. Raises ValueError if 'line' is in the wrong format.
Function _reporter​Action Undocumented
Function _wrapped​Pdb Wrap an instance of pdb.Pdb with readline support and load any .rcs.
Variable _run​Orders Undocumented
def getTestModules(filename): (source)

Undocumented

def isTestFile(filename): (source)
Returns true if 'filename' looks like a file containing unit tests. False otherwise. Doesn't care whether filename exists.
def loadLocalVariables(filename): (source)

Accepts a filename and attempts to load the Emacs variable declarations from that file, simulating what Emacs does.

See http://www.gnu.org/software/emacs/manual/html_node/File-Variables.html

def run(): (source)

Undocumented

TBFORMAT_MAP: dict[str, str] = (source)

Undocumented

Value
{'plain': 'default',
 'default': 'default',
 'emacs': 'brief',
 'brief': 'brief',
 'cgitb': 'verbose',
 'verbose': 'verbose'}
def _checkKnownRunOrder(order): (source)

Check that the given order is a known test running order.

Does nothing else, since looking up the appropriate callable to sort the tests should be done when it actually will be used, as the default argument will not be coerced by this function.

Parameters
orderone of the known orders in _runOrders
Returns
the order unmodified
def _getLoader(config): (source)

Undocumented

def _getSuite(config): (source)

Undocumented

def _initialDebugSetup(config): (source)

Undocumented

def _makeRunner(config): (source)
Return a trial runner class set up with the parameters extracted from config.
Returns
runner.TrialRunner or DistTrialRunner depending on the configuration.A trial runner instance.
def _maybeFindSourceLine(testThing): (source)
Try to find the source line of the given test thing.
Parameters
test​Thing:an TestCase, test method, or module, though only the former two have a chance to succeedthe test item to attempt to inspect
Returns
intthe starting source line, or -1 if one couldn't be found
def _parseLocalVariables(line): (source)

Accepts a single line in Emacs local variable declaration format and returns a dict of all the variables {name: value}. Raises ValueError if 'line' is in the wrong format.

See http://www.gnu.org/software/emacs/manual/html_node/File-Variables.html

def _reporterAction(): (source)

Undocumented

def _wrappedPdb(): (source)
Wrap an instance of pdb.Pdb with readline support and load any .rcs.
_runOrders = (source)

Undocumented