mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Handle py27.
This commit is contained in:
parent
5b03f496ab
commit
2e2a10f464
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue