diff options
author | Ronny Pfannschmidt <ronny.pfannschmidt@redhat.com> | 2017-03-20 17:58:34 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <ronny.pfannschmidt@redhat.com> | 2017-03-28 11:45:06 +0200 |
commit | ebeba79be373a06b4a5fccce3fe1fadff60eddaa (patch) | |
tree | 8711dcc4b4bd744c8ece796e05704536e4532c67 | |
parent | 6165939b0d957497208a93e0737ec0d937cd791b (diff) | |
download | pytest-ebeba79be373a06b4a5fccce3fe1fadff60eddaa.tar.gz |
remove the namespace hook from mark after the param feature merge
-rw-r--r-- | _pytest/mark.py | 6 | ||||
-rw-r--r-- | pytest.py | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/_pytest/mark.py b/_pytest/mark.py index 23ec44c29..c34df1239 100644 --- a/_pytest/mark.py +++ b/_pytest/mark.py @@ -66,10 +66,8 @@ class MarkerError(Exception): """Error in use of a pytest marker/attribute.""" -def pytest_namespace(): - return { - 'param': ParameterSet.param, - } +def param(*values, **kw): + return ParameterSet.param(*values, **kw) def pytest_addoption(parser): @@ -17,7 +17,7 @@ from _pytest import __version__ from _pytest.debugging import pytestPDB as __pytestPDB from _pytest.recwarn import warns, deprecated_call from _pytest.runner import fail, skip, importorskip, exit -from _pytest.mark import MARK_GEN as mark +from _pytest.mark import MARK_GEN as mark, param from _pytest.skipping import xfail from _pytest.main import Item, Collector, File, Session from _pytest.fixtures import fillfixtures as _fillfuncargs @@ -48,6 +48,7 @@ __all__ = [ 'importorskip', 'exit', 'mark', + 'param', 'approx', '_fillfuncargs', |