Change string format syntax from {} to {0} for py2.6

--HG--
branch : issue463
This commit is contained in:
Brianna Laugher 2015-03-21 23:57:06 +01:00
parent 6f81602ba2
commit deb163d237
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def pytest_cmdline_main(config):
def pytest_generate_tests(metafunc):
# this misspelling is common - raise a specific error to alert the user
if hasattr(metafunc.function, 'parameterize'):
msg = "{} has mark 'parameterize', spelling should be 'parametrize'"
msg = "{0} has mark 'parameterize', spelling should be 'parametrize'"
raise ValueError(msg.format(metafunc.function.__name__))
try:
markers = metafunc.function.parametrize