ķ 2ÄČ[c@`sÃdZddlmZmZmZddlZddlZddlZddlZddl m Z da iZ ejƒd„ƒZejdddeƒd „ƒZejdeƒd „ƒZdS( s= Pytest configuration and fixtures for the Numpy test suite. i(tdivisiontabsolute_importtprint_functionN(t get_fpu_modecC`sGtƒ}tdkr|an%|tkrCt|ft|<|andS(sŪ Check FPU precision mode was not changed during test collection. The clumsy way we do it here is mainly necessary because numpy still uses yield tests, which can execute code at test collection time. N(Rt _old_fpu_modetNonet_collect_results(titemtmode((s-/tmp/pip-build-fiC0ax/numpy/numpy/conftest.pytpytest_itemcollecteds    tscopetfunctiontautousecc`s‡tƒ}dVtƒ}||kr>tdj||ƒƒ‚ntj|jƒ}|dk rƒ|\}}tdj||ƒƒ‚ndS(sC Check FPU precision mode was not changed during the test. Ns@FPU precision mode changed from {0:#x} to {1:#x} during the testsIFPU precision mode changed from {0:#x} to {1:#x} when collecting the test(RtAssertionErrortformatRtgettnodeR(trequesttold_modetnew_modetcollect_result((s-/tmp/pip-build-fiC0ax/numpy/numpy/conftest.pytcheck_fpu_mode's       cC`st|ds    !