/snap/core18/2979/usr/lib/python3.6/test/libregrtest/__pycache__
Edit: /snap/core18/2979/usr/lib/python3.6/test/libregrtest/__pycache__/runtest.cpython-36.pyc (6283B)
3
Nqi" @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl
mZmZ d dl
mZ dZd Zd/Zd0Zd1Zd2Zd3Zd4Zededed
ededededediZdZddddddddddg
Ze Zdd Zdeefd d!Zd"d# Zd$d% Zd&d' Z d5d)d*Z!d+d, Z"d6d-d.Z#dS )7 N)support)dash_Rclear_caches)saved_test_environment z %s passedz %s failedz%s failed (env changed)z
%s skippedz%s skipped (resource denied)z%s interruptedz
%s crashedz%s run no testsg >@Ztest_grammarZtest_opcodesZ test_dictZtest_builtinZtest_exceptionsZ
test_typesZ
test_unittestZtest_doctestZ
test_doctest2Ztest_supportc C s t j|d}|| S )Nz%s)_FORMAT_TEST_RESULTget)Z test_nameresultZfmt r ./usr/lib/python3.6/test/libregrtest/runtest.pyformat_test_result: s r c C sv t | } tj| }g }t||B }xF|D ]>}tjj|\}}|dd dkr(|dkr(||kr(|j| q(W |t| S )z-Return a list of all applicable test modules.Nr
Ztest_.py )r r )findtestdiroslistdirsetpathsplitextappendsorted) testdirZstdtestsZnottestsnamestestsZothersnamemodZextr r r findtests? s
r! c C s |j ds| jr|S d| S d S )Nztest.)
startswithr )nstestr r r get_abs_moduleL s r% c s@ | j }| jdk }|r$tj| jdd ztj| j dt_| jrBg nd t_ }| j
rXdt_
|rdt_tj
}tj}tj}zD|t_|t_t| |dd}|d tkr|j } |j| |j W d|t_|t_X n| jt_t| || j d}|rddljj fdd|D }
nd}
||
f S |r(tj t|| j dt_ X dS ) a Run a single test.
ns -- regrtest namespace of options
test -- the name of the test
Returns the tuple (result, test_time, xml_data), where result is one
of the constants:
INTERRUPTED KeyboardInterrupt when run under -j
RESOURCE_DENIED test skipped because resource denied
SKIPPED test skipped for some other reason
ENV_CHANGED test failed because it changed the execution environment
FAILED test failed
PASSED test passed
EMPTY_TEST_SUITE test ran no subtests.
If ns.xmlpath is not None, xml_data is a list containing each
generated testsuite element.
NT)exitF)display_failurer c s g | ]} j |jd qS )zus-ascii)Ztostringdecode).0x)ETr r