|
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/lib/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
TestSpecificsc B s˜ t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z d „ Z RS( Nc C sO | i t t d d d ƒ d k } | i } t | d d ƒ t | d | ƒ d S( Ns
__debug__ = 1t ?t singlet __debug__t sure( t selft assertRaisest SyntaxErrort compilet __builtin__R t prevt setattr( R R R
( ( t' /usr/lib/python2.4/test/test_compile.pyt test_debug_assignment s
c B sÊ | i e e d ƒ | i e e d ƒ | i e e d ƒ y d d U| i d ƒ Wn e j
o n Xy d d U| i d ƒ Wn e j
o n Xy d d U| i d ƒ Wn e j
o n Xd S(
Ns lambda a,a:0s lambda a,a=1:0s lambda a=1,a=1:0s def f(a, a): passs duplicate argumentss def f(a = 0, a = 1): passs duplicate keyword argumentss def f(a): global a; a = 1s variable is global and local( R R R t evalt fail( R ( ( R t test_argument_handling s$ c C s | i t t d d d ƒ d S( Ns 1+*3t filenamet exec( R R R R ( R ( ( R t test_syntax_error% s c B s3 y d d U| i d ƒ Wn e j
o n Xd S( Ns def f(a): global a; a = 1s variable is global and local( R R R ( R ( ( R t test_duplicate_global_local( s
c B sŸ d f d „ ƒ Y} | ƒ } e ƒ } d | | U| i | i d ƒ y d | | UWn e j
o n X| i d ƒ d | | U| i | i d e d ƒ f ƒ d
| | U| i | i d | f ƒ d | | U| i | i d | f ƒ y d | UWn e
j
o n X| i d ƒ d
f d „ ƒ Y} | ƒ } y d | | UWn e
j
o n X| i d ƒ d e f d „ ƒ Y} | ƒ } d | | U| i | d d ƒ d S( Nt Mc B s) t Z d Z d „ Z d „ Z d „ Z RS( s9 Test mapping interface versus possible calls from eval().c C s | d j o d Sn t ‚ d S( Nt ai ( t keyt KeyError( R R ( ( R t __getitem__3 s
c C s | | f | _ d S( N( R t valueR t results( R R R ( ( R t __setitem__7 s c C s
t d ƒ S( Nt xyz( t list( R ( ( R t keys9 s ( t __name__t
__module__t __doc__R R R ( ( ( R R 1 s s z = at zi s z = bs Did not detect a KeyErrors z = dir()R s
z = globals()s z = locals()s' Did not validate globals as a real dictt Ac B s t Z d Z RS( s Non-mapping( R R! R"