diff --git a/tests/conventions/standard_attributes/test_standard_names.py b/tests/conventions/standard_attributes/test_standard_names.py index e6f9e461..8448e4f0 100644 --- a/tests/conventions/standard_attributes/test_standard_names.py +++ b/tests/conventions/standard_attributes/test_standard_names.py @@ -206,7 +206,10 @@ def test_to_html(self): try: import pypandoc from h5rdmtoolbox.utils import generate_temporary_filename - pypandoc.convert_file(generate_temporary_filename(touch=True), 'html', format='md') + fname = generate_temporary_filename(touch=False) + with open(fname, 'w') as f: + f.write('# test') + pypandoc.convert_file(fname, 'html', format='md') pypandoc_works = True except OSError: pypandoc_works = False