| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/trial/test/ |
Upload File : |
=Nc @ sQ d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m
Z
m Z m Z d d l
m Z d d l m Z d d l m Z e d Z d Z d
e j f d YZ d e j f d
YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d S( iN( t unittestt runner( t trial( t utilt deprecatet versions( t set( t FilePath( t testNamesR c C s t j t | S( s' For finding files in twisted/trial/test( R t sibpatht __file__( t filename( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyR s t ForceGarbageCollectionc B sD e Z d Z d Z d Z d Z d Z d Z d Z RS( s*
Tests for the --force-gc option.
c C s\ t j | _ g | _ | j t d | j t j | j } t
j | | g | _ d S( Nt collect(
R t Optionst configt logt patcht gcR
t pyunitt FunctionTestCaset
simpleTestR t TestSuitet test( t selfR ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyt setUp s
c C s | j j d d S( sD
A simple test method that records that it was run.
R N( R t append( R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyR % s c C s | j j d d S( sI
A replacement for gc.collect that logs calls to itself.
R
N( R R ( R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyR
, s c C s% t j | j } t j | _ | S( sU
Return a L{runner.TrialRunner} object that is safe to use in tests.
( R t _makeRunnerR t StringIOt stream( R R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyt
makeRunner3 s c C s_ t | j d <| j j | j } | j | j | j | j d d d d d d g d S( s
Passing the --force-gc option to the trial script forces the garbage
collector to run before and after each test.
s force-gcR
R N( t TrueR t postOptionsR t runR t assertEqualR ( R R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_script.pyt test_forceGc<