summaryrefslogtreecommitdiff
path: root/dev-python/genson/files/genson-1.2.2-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/genson/files/genson-1.2.2-test.patch')
-rw-r--r--dev-python/genson/files/genson-1.2.2-test.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/genson/files/genson-1.2.2-test.patch b/dev-python/genson/files/genson-1.2.2-test.patch
new file mode 100644
index 000000000000..1fb14ea900b0
--- /dev/null
+++ b/dev-python/genson/files/genson-1.2.2-test.patch
@@ -0,0 +1,28 @@
+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
+