Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_import.pyo |
³ò h”Rc @ s™ d d k l Z l Z d d k Z d d k Z d d k Z d d k Z y d d k Z Wn e j o n Xe d ƒ ‚ d d k l Z d „ Z d „ Z e i i d e i ƒ zG e e i d ƒ e i i d ƒ o x d D] Z e e ƒ qÞ Wn Wd e i d =Xd d k Z e i d ƒ Z e i d e Œ Z d „ Z e d ƒ d „ Z e ƒ d „ Z e ƒ d „ Z e ƒ d „ Z e ƒ d „ Z e ƒ d S( iÿÿÿÿ( t TESTFNt TestFailedNs3 import of RAnDoM should have failed (case mismatch)( t double_constc C sx xq | t i d | t i d | t i d | t i d | d f D]* } t i i | ƒ o t i | ƒ qF qF Wd S( Nt pyt pyct pyot pyws $py.class( t ost extsept patht existst remove( t namet f( ( s, /usr/local/lib/python2.5/test/test_import.pyt remove_files s c C s t | } t t i d } t i i d ƒ o t d } n t t i d } t | d ƒ } | d I| Id IJt i d ƒ } t i d ƒ } | d I| IJ| d I| IJ| i ƒ z– y t t ƒ } Wn+ t j o } t d | | f ƒ ‚ n X| i | j p | i | j o4 | Gd G| i GH| Gd G| i GHt d | ƒ ‚ n Wd t i | ƒ Xz: y t | ƒ Wn% t j o } t d | ƒ ‚ n XWd y t i | ƒ Wn t i j o n Xy t i | ƒ Wn t i j o n Xt i t =Xd S( NR t javas $py.classR t ws) # This tests Python's ability to import as file.iè s a =s b =s import from %s failed: %ss !=s' module loaded (%s) but contents invalids import from .pyc/.pyo failed: %s( R R R t syst platformt startswitht opent randomt randranget closet __import__t ImportErrort ValueErrort at bt unlinkt reloadt errort modules( t extt sourceR R R R R t modt err( ( s, /usr/local/lib/python2.5/test/test_import.pyt test_with_extension sH i R t wins .PYs .Pys .pYs .pyws .PYWs .pYwR c B s | e i d } e | d ƒ } | i d ƒ x! e d ƒ D] } | i d ƒ q: W| i d ƒ | i ƒ e | d ƒ } e i | ƒ | i ƒ e i | ƒ e i i d ƒ d | d Ue i d =xC d D]; } | e i | } e i i | ƒ o e i | ƒ qÈ qÈ Wd S( NR s w+s d = [ ièý s "", t ]t rt s import iÿÿÿÿR R ( s pycs pyo( R R R t writet rangeR t py_compilet compileR R R t appendR ( t modulet filenameR t iR! t fname( ( s, /usr/local/lib/python2.5/test/test_import.pyt test_module_with_large_stackX s( t longlistc C sÙ t t i d } t | d ƒ } | d IJ| i ƒ t i i d t i ƒ zm xf d D]^ } y t t ƒ } Wn6 t j o* t t i j o t d | ƒ ‚ q² qT Xt d | ƒ ‚ qT WWd t i i d ƒ t t ƒ Xd S( NR R s a = 1/0i i i i s damaged module in sys.moduless# was able to import a damaged module( i i i ( R R R R R R R t insertt curdirR t ZeroDivisionErrorR R t popR ( R"