Closed
Description
Hi there.
py.test is fantastic!
I'm wondering if the following is an error, or, expected behaviour:
With the following:
@pytest.mark.parametrize('p', ['spam eggs', 'ham'])
def test_me(p):
assert 1 == 1
This works fine:
py.test -k 'test_me[ham]'
While the following triggers an internal error / syntax error:
py.test -k 'test_me[spam eggs]'
Looks like condition here:
https://github.com/pytest-dev/pytest/blob/master/_pytest/mark.py#L154
prevents any matching on parameters having spaces in them (and falls through to an eval() call).