Skip to content

Commit

Permalink
REF/TST: Add more pytest idiom to parsers tests (#23761)
Browse files Browse the repository at this point in the history
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of gh-23712.
  • Loading branch information
gfyoung authored and jreback committed Nov 18, 2018
1 parent 1250500 commit bb96447
Show file tree
Hide file tree
Showing 10 changed files with 605 additions and 495 deletions.
119 changes: 0 additions & 119 deletions pandas/tests/io/parser/comment.py

This file was deleted.

136 changes: 0 additions & 136 deletions pandas/tests/io/parser/compression.py

This file was deleted.

7 changes: 7 additions & 0 deletions pandas/tests/io/parser/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import pytest

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


@pytest.fixture
def csv1(csv_dir_path):
return os.path.join(csv_dir_path, "test1.csv")


_cParserHighMemory = CParserHighMemory()
_cParserLowMemory = CParserLowMemory()
_pythonParser = PythonParser()
Expand Down
Loading

0 comments on commit bb96447

Please sign in to comment.