Skip to content

Commit

Permalink
cherry-pick 7e59308 (from pytest-dev#6174)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 13, 2019
1 parent 04d8a1c commit c202182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/python/metafunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,20 +1874,20 @@ def test1(y):
def test2(y):
pass
@pytest.mark.parametrize("a, b", [(1, 2), (3, 4)], ids=itertools.count(1))
@pytest.mark.parametrize("a, b", [(1, 2), (3, 4)], ids=itertools.count())
def test_converted_to_str(a, b):
pass
"""
)
result = testdir.runpytest("-vv", "-s")
result.stdout.fnmatch_lines(
result.stdout.fnmatch_lines_random( # random for py35.
[
"test_parametrize_iterator.py::test1[param0] PASSED",
"test_parametrize_iterator.py::test1[param1] PASSED",
"test_parametrize_iterator.py::test2[param2] PASSED",
"test_parametrize_iterator.py::test2[param3] PASSED",
"test_parametrize_iterator.py::test_converted_to_str[0] PASSED",
"test_parametrize_iterator.py::test_converted_to_str[1] PASSED",
"test_parametrize_iterator.py::test_converted_to_str[2] PASSED",
"*= 6 passed in *",
]
)

0 comments on commit c202182

Please sign in to comment.