Skip to content

Commit db45312

Browse files
committed
REF/TST: Add more pytest idiom to parsers tests
Adds more idiom to the following: * parser/comment --> parser/test_comment * parser/converters --> parser/test_converters * parser/compression --> parser/test_compression Builds off of pandas-devgh-23712.
1 parent 24bce1a commit db45312

10 files changed

+605
-495
lines changed

pandas/tests/io/parser/comment.py

-119
This file was deleted.

pandas/tests/io/parser/compression.py

-136
This file was deleted.

pandas/tests/io/parser/conftest.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
import pytest
24

35
from pandas import read_csv, read_table
@@ -49,6 +51,11 @@ def csv_dir_path(datapath):
4951
return datapath("io", "parser", "data")
5052

5153

54+
@pytest.fixture
55+
def csv1(csv_dir_path):
56+
return os.path.join(csv_dir_path, "test1.csv")
57+
58+
5259
_cParserHighMemory = CParserHighMemory()
5360
_cParserLowMemory = CParserLowMemory()
5461
_pythonParser = PythonParser()

0 commit comments

Comments
 (0)