HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/unittest/__pycache__/runner.cpython-35.pyc


FaF@sdZddlZddlZddlZddlmZddlmZdZGddde	Z
Gd	d
d
ejZGddde	Z
dS)
z
Running testsN)result)registerResultTc@s=eZdZdZddZddZdddZdS)	_WritelnDecoratorz@Used to decorate file-like objects with a handy 'writeln' methodcCs
||_dS)N)stream)selfrr%/usr/lib/python3.5/unittest/runner.py__init__sz_WritelnDecorator.__init__cCs(|dkrt|t|j|S)Nr__getstate__)rr)AttributeErrorgetattrr)rattrrrr	__getattr__sz_WritelnDecorator.__getattr__NcCs$|r|j||jddS)N
)write)rargrrr	writelns
z_WritelnDecorator.writeln)__name__
__module____qualname____doc__r
rrrrrr	r
srcseZdZdZddZddZfddZddZfd	d
ZfddZ	fd
dZ
fddZfddZfddZ
fddZddZddZS)TextTestResultzhA test result class that can print formatted text results to a stream.

    Used by TextTestRunner.
    =F-csPtt|j|||||_|dk|_|dk|_||_dS)Nr)superrr
rshowAlldotsdescriptions)rrr	verbosity)	__class__rr	r
%s
	zTextTestResult.__init__cCsB|j}|jr4|r4djt||fSt|SdS)Nr)ZshortDescriptionrjoinstr)rtestZdoc_first_linerrr	getDescription,szTextTestResult.getDescriptioncsYtt|j||jrU|jj|j||jjd|jjdS)Nz ... )rr	startTestrrrr%flush)rr$)r!rr	r&3s
	zTextTestResult.startTestcs\tt|j||jr2|jjdn&|jrX|jjd|jjdS)Nok.)	rr
addSuccessrrrrrr')rr$)r!rr	r*:s		zTextTestResult.addSuccesscs_tt|j|||jr5|jjdn&|jr[|jjd|jjdS)NERRORE)	rraddErrorrrrrrr')rr$err)r!rr	r-Bs		zTextTestResult.addErrorcs_tt|j|||jr5|jjdn&|jr[|jjd|jjdS)NFAILF)	rr
addFailurerrrrrr')rr$r.)r!rr	r1Js		zTextTestResult.addFailurecshtt|j|||jr>|jjdj|n&|jrd|jjd|jj	dS)Nz
skipped {0!r}s)
rraddSkiprrrformatrrr')rr$reason)r!rr	r3Rs		zTextTestResult.addSkipcs_tt|j|||jr5|jjdn&|jr[|jjd|jjdS)Nzexpected failurex)	rraddExpectedFailurerrrrrr')rr$r.)r!rr	r7Zs		z!TextTestResult.addExpectedFailurecs\tt|j||jr2|jjdn&|jrX|jjd|jjdS)Nzunexpected successu)	rraddUnexpectedSuccessrrrrrr')rr$)r!rr	r9bs		z#TextTestResult.addUnexpectedSuccesscCsI|js|jr|jj|jd|j|jd|jdS)Nr+r/)rrrrprintErrorListerrorsfailures)rrrr	printErrorsjs
zTextTestResult.printErrorscCsxxq|D]i\}}|jj|j|jjd||j|f|jj|j|jjd|qWdS)Nz%s: %sz%s)rr
separator1r%
separator2)rZflavourr;r$r.rrr	r:ps
#zTextTestResult.printErrorList)rrrrr>r?r
r%r&r*r-r1r3r7r9r=r:rr)r!r	rs

rc@s[eZdZdZeZdddddddddddZd	d
ZddZdS)
TextTestRunnerzA test runner class that displays results in textual form.

    It prints out the names of tests as they are run, errors as they
    occur, and a summary of the results at the end of the test run.
    NTrF	tb_localsc	Css|dkrtj}t||_||_||_||_||_||_||_	|dk	ro||_
dS)zConstruct a TextTestRunner.

        Subclasses should accept **kwargs to ensure compatibility as the
        interface changes.
        N)sysstderrrrrr failfastbufferrAwarningsresultclass)	rrrr rDrErGrFrArrr	r
s							zTextTestRunner.__init__cCs|j|j|j|jS)N)rGrrr )rrrr	_makeResultszTextTestRunner._makeResultcCs|j}t||j|_|j|_|j|_tj|jrtj|j|jdkrtjddt	ddt
j
}t|dd}|dk	r|z||Wdt|d	d}|dk	r|Xt
j
}WdQRX||}|jt
|d
r9|jj|j|j}|jjd||dkrcd
pfd|f|jjd}	}
}y%tt|j|j|jf}Wntk
rYnX|\}	}
}g}
|jsG|jjdt|jt|j}}|r-|
jd||rW|
jd|n|jjd|rn|
jd||	r|
jd|	|
r|
jd|
|
r|jjddj|
fn|jjd|S)z&Run the given test case or test suite.defaultalwaysmodulecategorymessagezPlease use assert\w+ instead.startTestRunNstopTestRunr?zRan %d test%s in %.3fsrr2rZFAILEDzfailures=%dz	errors=%dZOKz
skipped=%dzexpected failures=%dzunexpected successes=%dz (%s)z, r)rIrJ)rHrrDrErArFcatch_warningssimplefilterfilterwarningsDeprecationWarningtimer
r=hasattrrrr?ZtestsRunmaplenZexpectedFailuresunexpectedSuccessesskippedrZ
wasSuccessfulrr<r;appendr")rr$rZ	startTimerNrOZstopTimeZ	timeTakenrunZ
expectedFailsrYrZZresultsZinfosZfailedZerroredrrr	r\sr

	

	#

#zTextTestRunner.run)	rrrrrrGr
rHr\rrrr	r@xs	r@)rrBrUrFrPrZsignalsrZ
__unittestobjectrZ
TestResultrr@rrrr	<module>s[