class documentation

class TestIO:

View In Hierarchy

Test tofile, fromfile, tobytes, and fromstring
Method ​_check​_from Undocumented
Method decimal​_sep​_localization Including this fixture in a test will automatically execute it with both types of decimal separator.
Method test​_ascii Undocumented
Method test​_big​_binary Test workarounds for 32-bit limited fwrite, fseek, and ftell calls in windows. These normally would hang doing something like this. See http://projects.scipy.org/numpy/ticket/1660
Method test​_binary Undocumented
Method test​_bool​_fromstring Undocumented
Method test​_counted​_string Undocumented
Method test​_counted​_string​_with​_ws Undocumented
Method test​_dtype Undocumented
Method test​_dtype​_bool Undocumented
Method test​_empty​_files​_binary Undocumented
Method test​_empty​_files​_text Undocumented
Method test​_file​_position​_after​_fromfile Undocumented
Method test​_file​_position​_after​_tofile Undocumented
Method test​_fromfile​_bad​_dup Undocumented
Method test​_fromfile​_offset Undocumented
Method test​_fromfile​_subarray​_binary Undocumented
Method test​_fromstring​_count0 Undocumented
Method test​_inf Undocumented
Method test​_int64​_fromstring Undocumented
Method test​_io​_open​_buffered​_fromfile Undocumented
Method test​_io​_open​_unbuffered​_fromfile Undocumented
Method test​_largish​_file Undocumented
Method test​_load​_object​_array​_fromfile Undocumented
Method test​_long​_sep Undocumented
Method test​_malformed Undocumented
Method test​_nan Undocumented
Method test​_nofile Undocumented
Method test​_numbers Undocumented
Method test​_parsing​_subarray​_unsupported Undocumented
Method test​_read​_shorter​_than​_count​_subarray Undocumented
Method test​_roundtrip Undocumented
Method test​_roundtrip​_binary​_str Undocumented
Method test​_roundtrip​_dump​_pathlib Undocumented
Method test​_roundtrip​_file Undocumented
Method test​_roundtrip​_repr Undocumented
Method test​_roundtrip​_str Undocumented
Method test​_string Undocumented
Method test​_string​_with​_ws Undocumented
Method test​_tofile​_cleanup Undocumented
Method test​_tofile​_format Undocumented
Method test​_tofile​_sep Undocumented
Method test​_uint64​_fromstring Undocumented
Method test​_unseekable​_fromfile Undocumented
Method tmp​_filename Undocumented
Method x Undocumented
def _check_from(self, s, value, filename, **kw):

Undocumented

@pytest.fixture(params=['period', 'comma'])
def decimal_sep_localization(self, request):

Including this fixture in a test will automatically execute it with both types of decimal separator.

So:

def test_decimal(decimal_sep_localization):
    pass

is equivalent to the following two tests:

def test_decimal_period_separator():
    pass

def test_decimal_comma_separator():
    with CommaDecimalPointLocale():
        pass
def test_ascii(self, tmp_filename, decimal_sep_localization):

Undocumented

@pytest.mark.slow
def test_big_binary(self):
Test workarounds for 32-bit limited fwrite, fseek, and ftell calls in windows. These normally would hang doing something like this. See http://projects.scipy.org/numpy/ticket/1660
def test_binary(self, tmp_filename):

Undocumented

def test_bool_fromstring(self):

Undocumented

def test_counted_string(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_counted_string_with_ws(self, tmp_filename):

Undocumented

def test_dtype(self, tmp_filename):

Undocumented

def test_dtype_bool(self, tmp_filename):

Undocumented

def test_empty_files_binary(self, tmp_filename):

Undocumented

def test_empty_files_text(self, tmp_filename):

Undocumented

def test_file_position_after_fromfile(self, tmp_filename):

Undocumented

def test_file_position_after_tofile(self, tmp_filename):

Undocumented

@pytest.mark.skipif(IS_PYPY, reason='bug in PyPy\'s PyNumber_AsSsize_t')
def test_fromfile_bad_dup(self, x, tmp_filename):

Undocumented

def test_fromfile_offset(self, x, tmp_filename):

Undocumented

def test_fromfile_subarray_binary(self, tmp_filename):

Undocumented

def test_fromstring_count0(self):

Undocumented

def test_inf(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_int64_fromstring(self):

Undocumented

def test_io_open_buffered_fromfile(self, x, tmp_filename):

Undocumented

def test_io_open_unbuffered_fromfile(self, x, tmp_filename):

Undocumented

def test_largish_file(self, tmp_filename):

Undocumented

def test_load_object_array_fromfile(self, tmp_filename):

Undocumented

def test_long_sep(self, tmp_filename):

Undocumented

def test_malformed(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_nan(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_nofile(self):

Undocumented

def test_numbers(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_parsing_subarray_unsupported(self, tmp_filename):

Undocumented

def test_read_shorter_than_count_subarray(self, tmp_filename):

Undocumented

def test_roundtrip(self, x, tmp_filename):

Undocumented

def test_roundtrip_binary_str(self, x):

Undocumented

def test_roundtrip_dump_pathlib(self, x, tmp_filename):

Undocumented

def test_roundtrip_file(self, x, tmp_filename):

Undocumented

def test_roundtrip_repr(self, x):

Undocumented

def test_roundtrip_str(self, x):

Undocumented

def test_string(self, tmp_filename):

Undocumented

def test_string_with_ws(self, tmp_filename):

Undocumented

def test_tofile_cleanup(self, tmp_filename):

Undocumented

def test_tofile_format(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_tofile_sep(self, tmp_filename, decimal_sep_localization):

Undocumented

def test_uint64_fromstring(self):

Undocumented

def test_unseekable_fromfile(self, x, tmp_filename):

Undocumented

@pytest.fixture(params=['string', 'path_obj'])
def tmp_filename(self, tmp_path, request):

Undocumented

@pytest.fixture()
def x(self):

Undocumented