def run_simple_server() -> None: _ = get_dataset("smallfile") _ = get_dataset("bigfile") _ = get_dataset_bz2("smallfile") _ = get_dataset_bz2("bigfile") _ = get_dataset_gz("smallfile") _ = get_dataset_gz("bigfile") # if six.PY3: # _ = get_dataset_lzma('smallfile') # _ = get_dataset_lzma('bigfile') os.chdir(DATA_DIR) import RangeHTTPServer.__main__ # type: ignore assert RangeHTTPServer.__main__
def run_simple_server(): _ = get_dataset('smallfile') _ = get_dataset('bigfile') _ = get_dataset_bz2('smallfile') _ = get_dataset_bz2('bigfile') _ = get_dataset_gz('smallfile') _ = get_dataset_gz('bigfile') #if six.PY3: # _ = get_dataset_lzma('smallfile') # _ = get_dataset_lzma('bigfile') os.chdir(DATA_DIR) if six.PY2: import SimpleHTTPServer import RangeHTTPServer from RangeHTTPServer import RangeRequestHandler import sys sys.argv[1] = 8000 SimpleHTTPServer.test(HandlerClass=RangeRequestHandler) else: import RangeHTTPServer.__main__
def test_load_bigfile_gz(self): _ = get_dataset_gz('bigfile')
def test_load_smallfile_gz(self): _ = get_dataset_gz('smallfile')
def test_10_read_multi_csv_file_gzip_with_crash(self) -> None: file_list = [get_dataset_gz("bigfile")] * 2 self._tst_10_read_multi_csv_file_compress_with_crash( file_list, "t10_2")
def test_08_read_multi_csv_file_gz_no_crash(self) -> None: files = [get_dataset_gz("smallfile")] * 2 return self._tst_08_read_multi_csv_file_compress_no_crash(files)
def test_10_read_multi_csv_file_gzip_with_crash(self): file_list = [get_dataset_gz('bigfile')] * 2 self._tst_10_read_multi_csv_file_compress_with_crash(file_list)