summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-07-14 19:48:14 -0400
committerJulian Berman <Julian@GrayVines.com>2019-07-14 19:48:14 -0400
commite4fa34f6517895a81e5ba7e648dc0796f25f9b21 (patch)
treeb6873d64b797643396a4a8cfe630ac77bc2fe4ec
parent47fcb3941c9e8a6d79acb91a834381a3f0aa2f69 (diff)
downloadjsonschema-e4fa34f6517895a81e5ba7e648dc0796f25f9b21.tar.gz
Py2 argparse sends version to stderr.
-rw-r--r--jsonschema/tests/test_cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py
index ec2f764..ed820ba 100644
--- a/jsonschema/tests/test_cli.py
+++ b/jsonschema/tests/test_cli.py
@@ -145,6 +145,7 @@ class TestCLI(TestCase):
def test_version(self):
version = subprocess.check_output(
[sys.executable, "-m", "jsonschema", "--version"],
+ stderr=subprocess.STDOUT,
)
version = version.decode("utf-8").strip()
self.assertEqual(version, __version__)