forked from odlgroup/odl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: Fix largescale pytest mark issue
We change the command-line option to a version recommended in the pytest docs: https://docs.pytest.org/en/latest/example/markers.html#custom-marker-and-command-line-option-to-control-test-runs - A global `suite(name)` mark is registered, that takes a name and marks a test as belonging to a specific suite. - These special suites are opt-in, i.e., not run by default. - To enable a suite, one adds `-S name` to the pytest command-line options. - Since function-scoped fixtures are handled stricter now, the workaround in tensors_test.py didn't work any longer (see pytest-dev/pytest#6497). - We thus set the minimum pytest version to 5.4.0, where the fix for the issue is implemented. Closes: odlgroup#1514
- Loading branch information
Showing
12 changed files
with
112 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
[pytest] | ||
minversion = 3.0.3 | ||
markers = not benchmark and not largescale | ||
minversion = 5.4.0 | ||
testpaths = odl | ||
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS | ||
addopts = --doctest-modules | ||
addopts = --doctest-modules --strict-markers | ||
xfail_strict=true | ||
|
||
# PEP8 | ||
pep8ignore = | ||
E402 | ||
pep8maxlinelength = 79 | ||
# Temporary fix for https://github.com/odlgroup/odl/issues/1514, works with pytest<5.1 | ||
filterwarnings = | ||
ignore::pytest.PytestDeprecationWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.