Skip to content

Commit 94b5524

Browse files
committed
REF/TST: Finish pytest idiom in parser tests
Adds more idiom to the following: * parser/common --> parser/test_common * parser/quoting --> parser/test_quoting * parser/usecols --> parser/test_usecols * parser/python_parser_only --> parser/test_python_parser_only Also deletes parser/test_parsers. Builds off of pandas-devgh-23712.
1 parent 20ae454 commit 94b5524

11 files changed

+2938
-2760
lines changed

pandas/tests/io/parser/common.py

-1,620
This file was deleted.

pandas/tests/io/parser/conftest.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def read_csv(self, *args, **kwargs):
2424

2525
def read_table(self, *args, **kwargs):
2626
kwargs = self.update_kwargs(kwargs)
27-
with tm.assert_produces_warning(FutureWarning):
28-
return read_table(*args, **kwargs)
27+
return read_table(*args, **kwargs)
2928

3029

3130
class CParser(BaseParser):
@@ -43,7 +42,7 @@ class CParserLowMemory(CParser):
4342

4443
class PythonParser(BaseParser):
4544
engine = "python"
46-
float_precision_choices = []
45+
float_precision_choices = [None]
4746

4847

4948
@pytest.fixture

pandas/tests/io/parser/python_parser_only.py

-270
This file was deleted.

0 commit comments

Comments
 (0)