New issue 290: Exception when the fixture is parametrized twice with the same 
value
https://bitbucket.org/hpk42/pytest/issue/290/exception-when-the-fixture-is-parametrized

Anonymous:

import pytest


@pytest.fixture(params=['a', 'a'])
def foo(request):
    return request.param


def test_foo(foo):
    pass

I will get an exception KeyError: 'foo'.
I understand that the same value maybe doesn't sound like good idea, but i'm 
writing a plugin for pytest and testing the side effect of the multiple run.

Responsible: hpk42
--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
http://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to