Skip to content

Commit d35a2c4

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: * Finally delete parser/test_parsers! * Bug in capture_stdout decorator in which we were forgetting to use compat.wraps. Builds off of pandas-devgh-23712.
1 parent 20ae454 commit d35a2c4

12 files changed

+2941
-2762
lines changed

pandas/tests/io/parser/common.py

-1,620
This file was deleted.

pandas/tests/io/parser/conftest.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import pytest
44

55
from pandas import read_csv, read_table
6-
import pandas.util.testing as tm
76

87

98
class BaseParser(object):
@@ -24,8 +23,7 @@ def read_csv(self, *args, **kwargs):
2423

2524
def read_table(self, *args, **kwargs):
2625
kwargs = self.update_kwargs(kwargs)
27-
with tm.assert_produces_warning(FutureWarning):
28-
return read_table(*args, **kwargs)
26+
return read_table(*args, **kwargs)
2927

3028

3129
class CParser(BaseParser):
@@ -43,7 +41,7 @@ class CParserLowMemory(CParser):
4341

4442
class PythonParser(BaseParser):
4543
engine = "python"
46-
float_precision_choices = []
44+
float_precision_choices = [None]
4745

4846

4947
@pytest.fixture

pandas/tests/io/parser/python_parser_only.py

-270
This file was deleted.

0 commit comments

Comments
 (0)