diff options
Diffstat (limited to 'contrib/python/jsonschema/py3/patches/01-fix-tests.patch')
-rw-r--r-- | contrib/python/jsonschema/py3/patches/01-fix-tests.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/python/jsonschema/py3/patches/01-fix-tests.patch b/contrib/python/jsonschema/py3/patches/01-fix-tests.patch new file mode 100644 index 0000000000..4a23eff69a --- /dev/null +++ b/contrib/python/jsonschema/py3/patches/01-fix-tests.patch @@ -0,0 +1,23 @@ +--- contrib/python/jsonschema/py3/jsonschema/tests/test_cli.py (index) ++++ contrib/python/jsonschema/py3/jsonschema/tests/test_cli.py (working tree) +@@ -49,7 +49,7 @@ class TestParser(TestCase): + arguments = cli.parse_args( + [ + "--validator", +- "jsonschema.tests.test_cli.TestParser.FakeValidator", ++ "__tests__.test_cli.TestParser.FakeValidator", # XXX Arcadia + "--instance", self.instance_file, + self.schema_file, + ] +@@ -141,11 +141,3 @@ class TestCLI(TestCase): + self.assertFalse(stdout.getvalue()) + self.assertEqual(stderr.getvalue(), "1 - 9\t1 - 8\t2 - 7\t") + self.assertEqual(exit_code, 1) +- +- 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__) |