Skip to content

Commit 1410d3d

Browse files
authored
Merge pull request #5029 from blueyed/minor
Minor: doc, import
2 parents 15ea5ce + 7538aa7 commit 1410d3d

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

doc/en/mark.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
21
.. _mark:
32

43
Marking test functions with attributes
5-
=================================================================
6-
4+
======================================
75

86
By using the ``pytest.mark`` helper you can easily set
97
metadata on your test functions. There are
@@ -164,4 +162,4 @@ More details can be found in the `original PR <https://github.com/pytest-dev/pyt
164162
.. note::
165163

166164
in a future major relase of pytest we will introduce class based markers,
167-
at which point markers will no longer be limited to instances of :py:class:`Mark`
165+
at which point markers will no longer be limited to instances of :py:class:`Mark`.

doc/en/writing_plugins.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ import ``helper.py`` normally. The contents of
223223
pytest.register_assert_rewrite("pytest_foo.helper")
224224
225225
226-
227226
Requiring/Loading plugins in a test module or conftest file
228227
-----------------------------------------------------------
229228

src/_pytest/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ def fixture(scope="function", params=None, autouse=False, ids=None, name=None):
10211021
:arg params: an optional list of parameters which will cause multiple
10221022
invocations of the fixture function and all of the tests
10231023
using it.
1024+
The current parameter is available in ``request.param``.
10241025
10251026
:arg autouse: if True, the fixture func is activated for all tests that
10261027
can see it. If False (the default) then an explicit

src/_pytest/nose.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import six
99

10+
import pytest
1011
from _pytest import python
1112
from _pytest import runner
1213
from _pytest import unittest
@@ -26,7 +27,7 @@ def pytest_runtest_makereport(item, call):
2627
if call.excinfo and call.excinfo.errisinstance(get_skip_exceptions()):
2728
# let's substitute the excinfo with a pytest.skip one
2829
call2 = runner.CallInfo.from_call(
29-
lambda: runner.skip(six.text_type(call.excinfo.value)), call.when
30+
lambda: pytest.skip(six.text_type(call.excinfo.value)), call.when
3031
)
3132
call.excinfo = call2.excinfo
3233

src/_pytest/runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from .reports import TestReport
1717
from _pytest._code.code import ExceptionInfo
1818
from _pytest.outcomes import Exit
19-
from _pytest.outcomes import skip
2019
from _pytest.outcomes import Skipped
2120
from _pytest.outcomes import TEST_OUTCOME
2221

@@ -183,7 +182,7 @@ def call_and_report(item, when, log=True, **kwds):
183182
def check_interactive_exception(call, report):
184183
return call.excinfo and not (
185184
hasattr(report, "wasxfail")
186-
or call.excinfo.errisinstance(skip.Exception)
185+
or call.excinfo.errisinstance(Skipped)
187186
or call.excinfo.errisinstance(bdb.BdbQuit)
188187
)
189188

0 commit comments

Comments
 (0)