Fix raw string prefix

This commit is contained in:
Florian Bruhin 2017-05-23 10:09:06 +02:00
parent ea2fbc427a
commit 0f3a17ae88

View File

@ -389,7 +389,7 @@ class TestArgument:
def test_wrong_order(self):
"""When @cmdutils.argument is used above (after) @register, fail."""
with pytest.raises(ValueError, match=r"@cmdutils.argument got called "
"above \(after\) @cmdutils.register for fun!"):
r"above \(after\) @cmdutils.register for fun!"):
@cmdutils.argument('bar', flag='y')
@cmdutils.register()
def fun(bar):