Skip to content

Commit

Permalink
use python -m genson for test_bin
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverdude committed Apr 19, 2021
1 parent d2eaf53 commit 48cb689
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_bin.py
Expand Up @@ -25,8 +25,9 @@ def run(args=[], stdin_data=None):
Run the ``genson`` executable as a subprocess and return
(stdout, stderr).
"""
genson_process = Popen(['genson'] + args, stdout=PIPE, stderr=PIPE,
stdin=PIPE if stdin_data is not None else None)
genson_process = Popen(
['python', '-m', 'genson'] + args, stdout=PIPE, stderr=PIPE,
stdin=PIPE if stdin_data is not None else None)
if stdin_data is not None:
stdin_data = stdin_data.encode('utf-8')
(stdout, stderr) = genson_process.communicate(stdin_data)
Expand Down

0 comments on commit 48cb689

Please sign in to comment.