Ńņ [ŠKc @sddklZlZddkZddkZddklZddklZlZddk Tde fd„ƒYZ e djo e ƒndS( i’’’’(tNamedTemporaryFiletmktempN(tmemmap(tarangetallclose(t*t TestMemmapcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsStddƒ|_d|_d|_tdd|iƒ|_|ii|iƒdS( Ntprefixtmmapiitfloat32i tdtype(ii(RttmpfptshapeR Rtdatatresize(tself((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pytsetUp s   cCs|iiƒdS(N(R tclose(R((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyttearDownsc CsŠt|id|iddd|iƒ}|i|(~t|id|iddd|iƒ}t|i|ƒpt‚t|i|ƒdS(NR tmodesw+R tr(RR R R R RtAssertionErrortassert_array_equal(Rtfptnewfp((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyttest_roundtrips   cCsRtddƒ}t|d|iddd|iƒ}|i|(~ti|ƒdS(NtRR Rsw+R (RRR R R tostunlink(RttmpnameR((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyttest_open_with_filename!s   cCsjt|id|iddd|iƒ}|i|(|iƒtidtƒ|i ƒtidtƒdS(NR Rsw+R tignoretdefault( RR R R R tflushtwarningst simplefiltertDeprecationWarningtsync(RR((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyt test_flush)s    cs}t|id|iddd|iƒ}|}dtfd„ƒY‰ti}‡fd†}z|t_~Wd|t_XdS(NR Rsw+R tViewCloseErrorcBseZRS((t__name__t __module__(((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyR'8scsˆdƒ‚dS(Ns%View should not call _close on memmap((R(R'(sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyt replace_close;s(RR R R t Exceptiont_close(Rtfp_basetfp_viewR,R*((R'sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyttest_del3s   (R(R)RRRRR&R/(((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyR s     t__main__(ttempfileRRRR"tnumpyRRRt numpy.testingtTestCaseRR(trun_module_suite(((sB/usr/lib64/python2.6/site-packages/numpy/core/tests/test_memmap.pyts   :