Skip to content

Commit

Permalink
bugfix testing usage of pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Dec 5, 2023
1 parent e135824 commit 4301413
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conventions/standard_attributes/test_standard_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4301413

Please sign in to comment.