module documentation

Undocumented

Class TestCommaDecimalPointLocale Undocumented
Class TestFileBased Undocumented
Function test_array_and_stringlike_roundtrip Test that string representations of long-double roundtrip both for array casting and scalar coercion, see also gh-15608.
Function test_array_repr Undocumented
Function test_bogus_string Undocumented
Function test_format Undocumented
Function test_fromstring Undocumented
Function test_fromstring_bogus Undocumented
Function test_fromstring_complex Undocumented
Function test_fromstring_empty Undocumented
Function test_fromstring_missing Undocumented
Function test_longdouble_from_bool Undocumented
Function test_longdouble_from_int Undocumented
Function test_percent Undocumented
Function test_repr_exact Undocumented
Function test_repr_roundtrip Undocumented
Function test_repr_roundtrip_bytes Undocumented
Function test_scalar_extraction Confirm that extracting a value doesn't convert to python float
Constant LD_INFO Undocumented
Variable longdouble_longer_than_double Undocumented
Variable repr_precision Undocumented
Variable string_to_longdouble_inaccurate Undocumented
Variable _o Undocumented
@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
@pytest.mark.parametrize('strtype', (np.str_, np.bytes_, str, bytes))
def test_array_and_stringlike_roundtrip(strtype): (source)

Test that string representations of long-double roundtrip both for array casting and scalar coercion, see also gh-15608.

@pytest.mark.skipif(longdouble_longer_than_double, reason='array repr problem')
@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
def test_array_repr(): (source)

Undocumented

def test_bogus_string(): (source)

Undocumented

@pytest.mark.skipif(longdouble_longer_than_double, reason='BUG #2376')
@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
def test_format(): (source)

Undocumented

@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
def test_fromstring(): (source)

Undocumented

def test_fromstring_bogus(): (source)

Undocumented

def test_fromstring_complex(): (source)

Undocumented

def test_fromstring_empty(): (source)

Undocumented

def test_fromstring_missing(): (source)

Undocumented

@pytest.mark.parametrize('bool_val', [True, False])
def test_longdouble_from_bool(bool_val): (source)

Undocumented

@pytest.mark.parametrize('int_val', [2**1024, 0])
def test_longdouble_from_int(int_val): (source)

Undocumented

@pytest.mark.skipif(longdouble_longer_than_double, reason='BUG #2376')
@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
def test_percent(): (source)

Undocumented

def test_repr_exact(): (source)

Undocumented

@pytest.mark.skipif((LD_INFO.precision + 2 >= repr_precision), reason='repr precision not enough to show eps')
def test_repr_roundtrip(): (source)

Undocumented

@pytest.mark.skipif(string_to_longdouble_inaccurate, reason='Need strtold_l')
def test_repr_roundtrip_bytes(): (source)

Undocumented

def test_scalar_extraction(): (source)

Confirm that extracting a value doesn't convert to python float

Undocumented

Value
np.finfo(np.longdouble)
longdouble_longer_than_double = (source)

Undocumented

repr_precision = (source)

Undocumented

string_to_longdouble_inaccurate = (source)

Undocumented

Undocumented