test_print

Module Contents

_REF
check_float_type(tp)
test_float_types()

Check formatting.

This is only for the str function, and only for simple types. The precision of np.float and np.longdouble aren’t the same as the python float precision.

check_nan_inf_float(tp)
test_nan_inf_float()

Check formatting of nan & inf.

This is only for the str function, and only for simple types. The precision of np.float and np.longdouble aren’t the same as the python float precision.

check_complex_type(tp)
test_complex_types()

Check formatting of complex types.

This is only for the str function, and only for simple types. The precision of np.float and np.longdouble aren’t the same as the python float precision.

test_complex_inf_nan()

Check inf/nan formatting of complex types.

_check_complex_inf_nan(c, s, dtype)
_test_redirected_print(x, tp, ref=None)
check_float_type_print(tp)
check_complex_type_print(tp)
test_float_type_print()

Check formatting when using print

test_complex_type_print()

Check formatting when using print

test_scalar_format()

Test the str.format method with NumPy scalar types

in_foreign_locale(func)

Swap LC_NUMERIC locale to one in which the decimal point is ‘,’ and not ‘.’ If not possible, raise nose.SkipTest

test_locale_single()
test_locale_double()
test_locale_longdouble()