%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyo |
� 5}�ac @ s# d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d e j f d � � YZ d e f d � � YZ d � Z d � Z d � Z d � Z e j d � Z d e j Ud � Z d � Z d e j f d � � YZ d � Z e d k re � n d S( i����N( t test_support( t _FakeInputt PdbTestCasec B s# e Z d � Z d � Z d � Z RS( c C s� d } t | d � � } | j t j | � � Wd QX| j t j | � t j d d | g } d } } t j | d t j d t j d t j �} | j | � \ } } | j j � | j j � | | f S( s3 Run 'script' lines with pdb and the pdb 'commands'.s main.pyt wNs -mt pdbt stdoutt stdint stderr( t opent writet textwrapt dedentt addCleanupR t unlinkt syst executablet Nonet subprocesst Popent PIPEt STDOUTt communicateR t closeR ( t selft scriptt commandst filenamet ft cmdR R t proc( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyt run_pdb s c C s� d } d } d } t d d � � } | j t j | � � Wd QX| j t j d � | j t j d � | j | | � \ } } | j t d � | j � D� � d � d S( Ns� from bar import bar def foo(): bar() def nope(): pass def foobar(): foo() nope() foobar() s� from bar import bar break bar continue step step quit s5 def bar(): pass s bar.pyR s bar.pycc s s | ] } d | k Vq d S( s main.py(5)foo()->NoneN( ( t .0t l( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pys <genexpr>E s s+ Fail to step into the caller after a return( R R R R R R R R t assertTruet anyt splitlines( R R R t barR R R ( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyt test_issue13183# s c C sM d } d } d } | j | | � \ } } | j | | d j | | � � d S( Ns def f: pass t s SyntaxError:sE Expected: {} Got: {} Fail to handle a syntax error in the debuggee.( R t assertInt format( R R R t expectedR R ( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyt test_issue16180H s ( t __name__t __module__R R% R* ( ( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyR s %t PdbTestInputc B s) e Z d Z d � Z d � Z d � Z RS( s: Context manager that makes testing Pdb in doctests easier.c C s | | _ d S( N( t input( R R. ( ( s6 /opt/plesk/python/2.7/lib64/python2.7/test/test_pdb.pyt __init__W s c C s"