ó 2ÄÈ[c@`s¤dZddlmZmZmZddlZddlZddlZddlZ ddl m Z m Z m Z mZdefd„ƒYZdefd„ƒYZdS( s; Test the scalar constructors, which also do type-coercion i(tdivisiontabsolute_importtprint_functionN(t assert_equaltassert_almost_equalt assert_raisest assert_warnstTestFromStringcB`smeZd„Zd„ZejjejddkpVej dkoVe j ƒddkddƒd„ƒZ RS( cC`sXtjdƒ}tjdƒ}tjdƒ}t|dƒt|dƒt|dƒdS(Ns1.234gX9´Èv¾ó?(tnptsingletdoublet longdoubleR(tselftfsingletfdoublet flongdouble((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyt test_floatings   cC`s tjdƒ}t|tjƒtjdƒ}t|tjƒtjdƒ}t|tjƒtttjdƒ}t|tjƒtjdƒ}t|tj ƒtjdƒ}t|tj ƒtjdƒ}t|tj ƒtttjdƒ}t|tj ƒdS(s6 Strings containing an unrepresentable float overflow t1e10000s-1e10000N( RthalfRtinfR R RtRuntimeWarningR (R tfhalfR RR((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyttest_floating_overflows iitwin32t64bittreasons=numpy.intp('0xff', 16) not supported on Py3 or 64 bit WindowscC`s‡tjdƒjdd}tjdd|dƒtttjdd|ddƒtttjddƒtd tjd dƒƒdS( Niiit0xtfit0x1i iÿt0xFF(Rtint_tnbytestintpRt OverflowErrort ValueErrorR(R ti_width((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyt test_intp-s "( t__name__t __module__RRtpytesttmarktskipiftsyst version_infotplatformt architectureR$(((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyRs  t TestFromIntcB`seZd„Zd„ZRS(cC`stdtjdƒƒdS(Ni(RRR (R ((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyR$<scC`s#ttjdƒtjdƒƒdS(Niþÿÿÿlþÿÿÿ(RRtuint64(R ((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyttest_uint64_from_negative@s(R%R&R$R0(((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyR.;s (t__doc__t __future__RRRR*R,R'tnumpyRt numpy.testingRRRRtobjectRR.(((sA/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/test_scalar_ctors.pyts    ",