Skip to content

Commit

Permalink
tests: Fix invocation of _transpile
Browse files Browse the repository at this point in the history
Not noticed because of use of TypeError in the transpiler.
  • Loading branch information
jayvdb committed Jun 27, 2021
1 parent 88f3e94 commit dac28af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_unsupported.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from unittest_expander import foreach, expand

from py2many.cli import _get_all_settings, _relative_to_cwd, _transpile
from py2many.cli import _get_all_settings, _relative_to_cwd, _transpile, _transpile_one

import py2many.cli

Expand Down Expand Up @@ -322,8 +322,8 @@ def test_error_cases(self, case):
if proc.returncode:
raise RuntimeError(f"Invalid case {case}:\n{proc.stdout}{proc.stderr}")
try:
_transpile(
"stdin",
_transpile_one(
[tree],
tree,
settings.transpiler,
settings.rewriters,
Expand Down

0 comments on commit dac28af

Please sign in to comment.