summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <ronny.pfannschmidt@redhat.com>2017-03-20 17:58:34 +0100
committerRonny Pfannschmidt <ronny.pfannschmidt@redhat.com>2017-03-28 11:45:06 +0200
commitebeba79be373a06b4a5fccce3fe1fadff60eddaa (patch)
tree8711dcc4b4bd744c8ece796e05704536e4532c67
parent6165939b0d957497208a93e0737ec0d937cd791b (diff)
downloadpytest-ebeba79be373a06b4a5fccce3fe1fadff60eddaa.tar.gz
remove the namespace hook from mark after the param feature merge
-rw-r--r--_pytest/mark.py6
-rw-r--r--pytest.py3
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):
diff --git a/pytest.py b/pytest.py
index d720ee866..4e4ccb32d 100644
--- a/pytest.py
+++ b/pytest.py
@@ -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',