aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/jsonschema/py2/patches/01-fix-tests.patch
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/jsonschema/py2/patches/01-fix-tests.patch
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/jsonschema/py2/patches/01-fix-tests.patch')
-rw-r--r--contrib/python/jsonschema/py2/patches/01-fix-tests.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/python/jsonschema/py2/patches/01-fix-tests.patch b/contrib/python/jsonschema/py2/patches/01-fix-tests.patch
new file mode 100644
index 0000000000..f35892f04f
--- /dev/null
+++ b/contrib/python/jsonschema/py2/patches/01-fix-tests.patch
@@ -0,0 +1,23 @@
+--- contrib/python/jsonschema/py2/jsonschema/tests/test_cli.py (index)
++++ contrib/python/jsonschema/py2/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__)