| 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/internet/test/ |
Upload File : |
ó
[³XMc @ s} d Z d d l m Z d d l m Z e j rE d d l m Z n d Z d e f d YZ e d k ry d e _
n d S( s-
Tests for L{twisted.internet._pollingfile}.
i˙˙˙˙( t platform( t TestCase( t _pollingfilet TestPollableWritePipec B s e Z d Z d Z RS( s7
Tests for L{_pollingfile._PollableWritePipe}.
c C sP t j d d } | j d | j | j d | j t | j d S( sÎ
When one tries to pass unicode to L{_pollingfile._PollableWritePipe}, a
C{TypeError} is raised instead of passing the data to C{WriteFile}
call which is going to mangle it.
i c S s d S( N( t None( ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_pollingfile.pyt <lambda> s t testu testN( R t _PollableWritePipet writet checkWorkt assertRaisest TypeError( t selft p( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_pollingfile.pyt test_checkWorkUnicode s
( t __name__t
__module__t __doc__R ( ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_pollingfile.pyR s s, _pollingfile is only avalable under Windows.N( R t twisted.python.runtimeR t twisted.trial.unittestR t isWindowst twisted.internetR R R t skip( ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_pollingfile.pyt <module> s