From 2e2a10f464661da7bc7a570cdc87c04cd1888371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?= Date: Wed, 5 Feb 2020 18:51:29 +0100 Subject: [PATCH] Handle py27. --- tests/trailing_whitespace_fixer_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/trailing_whitespace_fixer_test.py b/tests/trailing_whitespace_fixer_test.py index e13c4f9..4334657 100644 --- a/tests/trailing_whitespace_fixer_test.py +++ b/tests/trailing_whitespace_fixer_test.py @@ -59,7 +59,7 @@ def test_fixes_markdown_files(tmpdir, ext): @pytest.mark.parametrize('ext', ('.md.j2')) def test_fixes_custom_ext_markdown_files(tmpdir, ext): - path = tmpdir.join(f'test.{ext}') + path = tmpdir.join('test.{}'.format(ext)) path.write( 'foo \n' # leaves alone 'bar \n' # less than two so it is removed @@ -80,7 +80,7 @@ def test_fixes_custom_ext_markdown_files(tmpdir, ext): @pytest.mark.parametrize('ext', ('md', '.md', 'Md')) def test_complex_ext_are_not_wrongly_recognized(tmpdir, ext): - path = tmpdir.join(f'test.fmd') + path = tmpdir.join('test.fmd') path.write( 'foo \n' 'bar \n'