From afbc65325ec45997fd52d655cc2ccd95b928830c Mon Sep 17 00:00:00 2001 From: Eric Dill Date: Sun, 2 Aug 2015 17:18:38 -0400 Subject: [PATCH] py26: {} cannot be empty for string formatting So that's a nasty gotcha of python 2.6! --- examples/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/test_examples.py b/examples/test_examples.py index 6fcee492..3e6b8200 100644 --- a/examples/test_examples.py +++ b/examples/test_examples.py @@ -30,7 +30,7 @@ def test_examples(frontend, f): # Test the examples with all available front-ends print('frontend = %s. f = %s' % (frontend, f)) if not frontends[frontend]: - pytest.skip('{} is not installed. Skipping tests'.format(frontend)) + pytest.skip('%s is not installed. Skipping tests' % frontend) utils.testFile(f[0], f[1], utils.sys.executable, frontend) if __name__ == "__main__":