merge with master

This commit is contained in:
Anatoly Bubenkov 2014-07-24 18:14:14 +02:00
commit 44be5f426a
4 changed files with 10 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.py[cod]
/.env
*.orig
# C extensions
*.so

View File

@ -7,6 +7,12 @@ Changelog
- Implemented cucumber json formatter (bubenkoff, albertjan)
2.1.2
-----
- Latest pytest compartibility fixes (bubenkoff)
2.1.1
-----

View File

@ -45,7 +45,7 @@ def _inject_fixture(request, arg, value):
lambda: value, None, None,
False,
)
fd.cached_result = (value, 0)
fd.cached_result = (value, 0, None)
old_fd = getattr(request, '_fixturedefs', {}).get(arg)
old_value = request._funcargs.get(arg)
@ -101,7 +101,7 @@ def _find_step_function(request, step, encoding):
"""Step definition is not found: "{e.argname}"."""
""" Line {step.line_number} in scenario "{scenario.name}" in the feature "{feature.filename}""".format(
e=e, step=step, scenario=step.scenario, feature=step.scenario.feature)
)
)
def _execute_step_function(request, feature, step, step_func, example=None):
@ -133,7 +133,6 @@ def _execute_step_function(request, feature, step, step_func, example=None):
def _execute_scenario(feature, scenario, request, encoding, example=None):
"""Execute the scenario."""
givens = set()
# Execute scenario steps
for step in scenario.steps:
@ -249,7 +248,6 @@ def scenario(
feature_name, scenario_name, encoding='utf-8', example_converters=None,
caller_module=None, caller_function=None):
"""Scenario."""
caller_module = caller_module or get_caller_module()
caller_function = caller_function or get_caller_function()

View File

@ -56,7 +56,7 @@ setup(
] + [('Programming Language :: Python :: %s' % x) for x in '2.6 2.7 3.0 3.1 3.2 3.3'.split()],
cmdclass={'test': Tox},
install_requires=[
'pytest',
'pytest>=2.6.0',
],
# the following makes a plugin available to py.test
entry_points={