Merge remote-tracking branch 'upstream/master' into features-assertion-pass-hook-master

# Conflicts:
#	src/_pytest/assertion/rewrite.py
This commit is contained in:
Victor Maryama
2019-06-26 18:12:56 +02:00
37 changed files with 606 additions and 285 deletions

View File

@@ -1761,3 +1761,16 @@ class TestMarkersWithParametrization:
result.stdout.fnmatch_lines(
["*test_func_a*0*PASS*", "*test_func_a*2*PASS*", "*test_func_b*10*PASS*"]
)
def test_parametrize_positional_args(self, testdir):
testdir.makepyfile(
"""
import pytest
@pytest.mark.parametrize("a", [1], False)
def test_foo(a):
pass
"""
)
result = testdir.runpytest()
result.assert_outcomes(passed=1)