o 6a@sZddlZddlZddlZddlmZmZedZedurdne dZ GdddZ dS)N)assert_ assert_raises HOST_GNU_TYPEFgnueabic@sLeZdZejjeddddZejjeddddZdd Z d d Z d S) TestErrstatez+platform/cpu issue with FPU (gh-413,-15562))reasonc CstjdddKtd }tjdd t|Wdn1s$wYtt t|Wdn1s=wYWddSWddS1sUwYdS)Nraiseignoreallunder)invalid)nperrstatearangesqrtrFloatingPointErrorselfar@/usr/lib/python3/dist-packages/numpy/core/tests/test_errstate.py test_invalids    "zTestErrstate.test_invalidz&platform/cpu issue with FPU (gh-15562)c Cstjdddatd }tjdd |dWdn1s#wYtt |dWdn1s;wYtt ||Wdn1sSwYWddSWddS1skwYdS)Nrr r r )divider)rrrrrrrrr test_divides       "zTestErrstate.test_dividec Csdd}t}tj|d0tt|udtjddttdudWdn1s2wYWdn1sAwYtt|uddS)NcWs t|dS)N)print)argsrrrfoo+s z&TestErrstate.test_errcall..foo)callzcall is not foozcall is not Nonezcall is not olderrcall)r geterrcallrr)rr olderrcallrrr test_errcall*szTestErrstate.test_errcallcCstjdddd}|dS)Nr )r cSstd }|ddS)Nr r)rr)rrrrr6s  z1TestErrstate.test_errstate_decorator..foo)rr)rrrrrtest_errstate_decorator5s   z$TestErrstate.test_errstate_decoratorN) __name__ __module__ __qualname__pytestmarkskipif arm_softfloatrrr"r#rrrrrs    r) r' sysconfignumpyr numpy.testingrrget_config_varhosttypeendswithr*rrrrrs