Repository navigation
Commit dcbaae3
committed
DOC: Explain how to run the tests without other pytest plugins
pytest loads every plugin installed in the environment, and the strict test
configuration turns a marker that a plugin uses but linearmodels does not
register into an error. In the FreeBSD report (xref #853), test_runner and
test_extra_args failed with "'gpu' not found in markers configuration option":
linearmodels.test() starts a second pytest session in the same process, and a
plugin of that environment used the marker there.
The README now shows how to run the tests, and how to run them with
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 and pytest-xdist loaded explicitly. A stand-in
plugin that uses an unregistered marker fails the same two tests with the same
message, and they pass with the environment variable. The testing requirements
also list xarray, which the tests import, and pytest-xdist.1 parent 5cc05f2 commit dcbaae3
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
128 | 169 | | |
129 | 170 | | |
130 | 171 | | |
| |||
173 | 214 | | |
174 | 215 | | |
175 | 216 | | |
| 217 | + | |
| 218 | + | |
176 | 219 | | |
177 | 220 | | |
178 | 221 | | |
| |||
0 commit comments