From deb163d237840b5f5dab57ead64a657351ea95e2 Mon Sep 17 00:00:00 2001 From: Brianna Laugher Date: Sat, 21 Mar 2015 23:57:06 +0100 Subject: [PATCH] Change string format syntax from {} to {0} for py2.6 --HG-- branch : issue463 --- _pytest/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/python.py b/_pytest/python.py index 4681c6a7b..4d57a3c4b 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -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