Skip to content

Commit

Permalink
Revert "Fixes test cases that uses python, while only python3 is avai…
Browse files Browse the repository at this point in the history
…lable: Fixes #276 (#302)"

This reverts commit b2738b4.
  • Loading branch information
JessicaTegner authored Oct 1, 2022
1 parent b2738b4 commit 49b1b56
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def test_conversion_with_empty_filter(self):
def test_conversion_with_python_filter(self):
markdown_source = "**Here comes the content.**"
python_source = '''\
#!{0}
#!/usr/bin/env python
"""
Pandoc filter to convert all regular text to uppercase.
Expand All @@ -328,8 +328,6 @@ def caps(key, value, format, meta):
toJSONFilter(caps)
'''
python_source = textwrap.dedent(python_source)
python_source.format(sys.executable)

with closed_tempfile(".py", python_source) as tempfile:
output = pypandoc.convert_text(
markdown_source, to='html', format='md', outputfile=None, filters=tempfile
Expand Down Expand Up @@ -364,7 +362,7 @@ def test_conversion_with_mixed_filters(self):
lua = textwrap.dedent(lua)

python = """\
#!{0}
#!/usr/bin/env python
from pandocfilters import toJSONFilter, Para, Str
Expand All @@ -377,7 +375,6 @@ def func(key, value, format, meta):
"""
python = textwrap.dedent(python)
python.format(sys.executable)

with closed_tempfile(".lua", lua.format(1)) as temp1, closed_tempfile(".py", python.format(2)) as temp2:
with closed_tempfile(".lua", lua.format(3)) as temp3, closed_tempfile(".py", python.format(4)) as temp4:
Expand Down

0 comments on commit 49b1b56

Please sign in to comment.