Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pandas/tests/io/parser/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import os
from typing import List, Optional

import pytest

from pandas import read_csv, read_table


class BaseParser:
engine = None
engine = None # type: Optional[str]
low_memory = True
float_precision_choices = []
float_precision_choices = [] # type: List[Optional[str]]

def update_kwargs(self, kwargs):
kwargs = kwargs.copy()
Expand Down Expand Up @@ -59,11 +60,11 @@ def csv1(csv_dir_path):

_py_parsers_only = [_pythonParser]
_c_parsers_only = [_cParserHighMemory, _cParserLowMemory]
_all_parsers = _c_parsers_only + _py_parsers_only
_all_parsers = [*_c_parsers_only, *_py_parsers_only]

_py_parser_ids = ["python"]
_c_parser_ids = ["c_high", "c_low"]
_all_parser_ids = _c_parser_ids + _py_parser_ids
_all_parser_ids = [*_c_parser_ids, *_py_parser_ids]


@pytest.fixture(params=_all_parsers, ids=_all_parser_ids)
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,6 @@ ignore_errors=True
[mypy-pandas.tests.io.json.test_ujson]
ignore_errors=True

[mypy-pandas.tests.io.parser.conftest]
ignore_errors=True

[mypy-pandas.tests.io.test_sql]
ignore_errors=True

Expand Down