|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21572/root/usr/lib64/python2.4/test/ |
Upload File : |
mō
=5Dc @ sf d k Z d k Z d k Z d k l Z d e i f d YZ d Z e d j o e n d S( N( s test_supportt SyntaxTestCasec B s2 t Z d d d Z d Z d Z d Z RS( Ns
<testcase>t execc C sz y t | | | WnR t j
oF } t i | t | } | d j o | i
d | f qv n X| i
d d S( sŪ Check that compiling code raises SyntaxError with errtext.
errtest is a regular expression that must be present in the
test of the exception raised.
s SyntaxError did not contain '%r's# compile() did not raise SyntaxErrorN( t compilet codet filenamet modet SyntaxErrort errt ret searcht errtextt strt mot Nonet selft fail( R R R
R R R R ( ( t( /usr/lib64/python2.4/test/test_syntax.pyt _check_error s
c C s | i d d d S( Ns f() = 1t assign( R R ( R ( ( R t test_assign_call s c C s | i d d d S( Ns del f()t delete( R R ( R ( ( R t test_assign_del s c C sO t i d d d } t i d d d t | i | d t i i d d S( Ns (?m)^ *:t sŊ :def error(a):
: global a # SyntaxError
:def warning():
: b = 1
: global b # SyntaxWarning
:t actiont ignoret categoryt globali (
R t subt sourcet warningst filterwarningst
SyntaxWarningR R t filterst pop( R R ( ( R t test_global_err_then_warn s
( t __name__t
__module__R R R R"