From 48cb6895f1a4b3320d9ae210debd0befe06bec43 Mon Sep 17 00:00:00 2001
From: Jon Wolverton <jonwolverton@google.com>
Date: Mon, 19 Apr 2021 14:27:42 -0400
Subject: [PATCH] use python -m genson for test_bin

---
 test/test_bin.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/test_bin.py b/test/test_bin.py
index cd16d38..acee10f 100644
--- a/test/test_bin.py
+++ b/test/test_bin.py
@@ -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)
-- 
2.40.0

