%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_pdb.pyc |
ó Nêá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( ( s) /usr/local/lib/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( ( s) /usr/local/lib/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 ( ( s) /usr/local/lib/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 ( ( s) /usr/local/lib/python2.7/test/test_pdb.pyt test_issue16180H s ( t __name__t __module__R R% R* ( ( ( s) /usr/local/lib/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. ( ( s) /usr/local/lib/python2.7/test/test_pdb.pyt __init__W s c C s"