Skip to content

Commit c7bbb2a

Browse files
authored
Merge pull request #4833 from blueyed/merge-master
Merge master into features
2 parents 2cf1de3 + 29112d7 commit c7bbb2a

7 files changed

+16
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ after_success:
105105
coverage combine
106106
coverage xml --ignore-errors
107107
coverage report -m --ignore-errors
108-
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F "${TOXENV//-/,},linux"
108+
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F $TRAVIS_OS_NAME
109109
fi
110110
111111
notifications:

doc/en/customize.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ progress output, you can write it into a configuration file:
133133

134134
.. code-block:: ini
135135
136-
# content of pytest.ini
137-
# (or tox.ini or setup.cfg)
136+
# content of pytest.ini or tox.ini
137+
# setup.cfg files should use [tool:pytest] section instead
138138
[pytest]
139139
addopts = -ra -q
140140

doc/en/goodpractices.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Conventions for Python test discovery
4242
* In those directories, search for ``test_*.py`` or ``*_test.py`` files, imported by their `test package name`_.
4343
* From those files, collect test items:
4444

45-
* ``test_`` prefixed test functions or methods outside of class
46-
* ``test_`` prefixed test functions or methods inside ``Test`` prefixed test classes (without an ``__init__`` method)
45+
* ``test`` prefixed test functions or methods outside of class
46+
* ``test`` prefixed test functions or methods inside ``Test`` prefixed test classes (without an ``__init__`` method)
4747

4848
For examples of how to customize your test discovery :doc:`example/pythoncollection`.
4949

doc/en/mark.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ which also serve as documentation.
2929
Raising errors on unknown marks: --strict
3030
-----------------------------------------
3131

32-
When the ``--strict`` command-line flag is passed, any marks not registered in the ``pytest.ini`` file will trigger an error.
32+
When the ``--strict`` command-line flag is passed, any unknown marks applied
33+
with the ``@pytest.mark.name_of_the_mark`` decorator will trigger an error.
34+
Marks defined or added by pytest or by a plugin will not trigger an error.
3335

34-
Marks can be registered like this:
36+
Marks can be registered in ``pytest.ini`` like this:
3537

3638
.. code-block:: ini
3739

doc/en/reference.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,11 @@ passed multiple times. The expected format is ``name=value``. For example::
12261226

12271227
.. confval:: markers
12281228

1229-
List of markers that are allowed in test functions, enforced when ``--strict`` command-line argument is used.
1230-
You can use a marker name per line, indented from the option name.
1229+
When the ``--strict`` command-line argument is used, only known markers -
1230+
defined in code by core pytest or some plugin - are allowed.
1231+
You can list additional markers in this setting to add them to the whitelist.
1232+
1233+
You can list one marker name per line, indented from the option name.
12311234

12321235
.. code-block:: ini
12331236

scripts/upload-coverage.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if not defined PYTEST_NO_COVERAGE (
55
C:\Python36\Scripts\coverage combine
66
C:\Python36\Scripts\coverage xml --ignore-errors
77
C:\Python36\Scripts\coverage report -m --ignore-errors
8-
scripts\appveyor-retry C:\Python36\Scripts\codecov --required -X gcov pycov search -f coverage.xml --flags %TOXENV:-= % windows
8+
scripts\appveyor-retry C:\Python36\Scripts\codecov --required -X gcov pycov search -f coverage.xml --flags windows
99
) else (
1010
echo Skipping coverage upload, PYTEST_NO_COVERAGE is set
1111
)

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ commands =
8383
deps =
8484
{[testenv]deps}
8585
twisted
86+
unittest2
8687
commands =
8788
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
8889

0 commit comments

Comments
 (0)