File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 44
44
# Configuration / Settings
45
45
# ----------------------------------------------------------------
46
46
# pytest
47
+ def pytest_configure (config ):
48
+ # Register marks to avoid warnings in pandas.test()
49
+ # sync with setup.cfg
50
+ config .addinivalue_line ("markers" , "single: mark a test as single cpu only" )
51
+ config .addinivalue_line ("markers" , "slow: mark a test as slow" )
52
+ config .addinivalue_line ("markers" , "network: mark a test as network" )
53
+ config .addinivalue_line (
54
+ "markers" , "db: tests requiring a database (mysql or postgres)"
55
+ )
56
+ config .addinivalue_line ("markers" , "high_memory: mark a test as a high-memory only" )
57
+ config .addinivalue_line ("markers" , "clipboard: mark a pd.read_clipboard test" )
58
+
59
+
47
60
def pytest_addoption (parser ):
48
61
parser .addoption ("--skip-slow" , action = "store_true" , help = "skip slow tests" )
49
62
parser .addoption ("--skip-network" , action = "store_true" , help = "skip network tests" )
Original file line number Diff line number Diff line change @@ -54,13 +54,6 @@ exclude =
54
54
# sync minversion with setup.cfg & install.rst
55
55
minversion = 4.0.2
56
56
testpaths = pandas
57
- markers =
58
- single: mark a test as single cpu only
59
- slow: mark a test as slow
60
- network: mark a test as network
61
- db: tests requiring a database (mysql or postgres)
62
- high_memory: mark a test as a high-memory only
63
- clipboard: mark a pd.read_clipboard test
64
57
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS
65
58
addopts = --strict-data-files
66
59
xfail_strict = True
You can’t perform that action at this time.
0 commit comments