Handle py27.

This commit is contained in:
Rémy HUBSCHER 2020-02-05 18:51:29 +01:00
parent 5b03f496ab
commit 2e2a10f464
No known key found for this signature in database
GPG key ID: A500E24B95405094

View file

@ -59,7 +59,7 @@ def test_fixes_markdown_files(tmpdir, ext):
@pytest.mark.parametrize('ext', ('.md.j2')) @pytest.mark.parametrize('ext', ('.md.j2'))
def test_fixes_custom_ext_markdown_files(tmpdir, ext): def test_fixes_custom_ext_markdown_files(tmpdir, ext):
path = tmpdir.join(f'test.{ext}') path = tmpdir.join('test.{}'.format(ext))
path.write( path.write(
'foo \n' # leaves alone 'foo \n' # leaves alone
'bar \n' # less than two so it is removed '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')) @pytest.mark.parametrize('ext', ('md', '.md', 'Md'))
def test_complex_ext_are_not_wrongly_recognized(tmpdir, ext): def test_complex_ext_are_not_wrongly_recognized(tmpdir, ext):
path = tmpdir.join(f'test.fmd') path = tmpdir.join('test.fmd')
path.write( path.write(
'foo \n' 'foo \n'
'bar \n' 'bar \n'