aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/websocket-client/patches/01-fix-tests.patch
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-12-09 18:25:21 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-12-09 19:18:57 +0300
commit13374e0884578812cda7697d0c5680122db59a37 (patch)
tree30a022eb841035299deb2b8c393b2902f0c21735 /contrib/python/websocket-client/patches/01-fix-tests.patch
parentc7ade6d3bf7cd492235a61b77153351e422a28f3 (diff)
downloadydb-13374e0884578812cda7697d0c5680122db59a37.tar.gz
Intermediate changes
commit_hash:034150f557268506d7bc0cbd8b5becf65f765593
Diffstat (limited to 'contrib/python/websocket-client/patches/01-fix-tests.patch')
-rw-r--r--contrib/python/websocket-client/patches/01-fix-tests.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/python/websocket-client/patches/01-fix-tests.patch b/contrib/python/websocket-client/patches/01-fix-tests.patch
new file mode 100644
index 0000000000..dc6354510e
--- /dev/null
+++ b/contrib/python/websocket-client/patches/01-fix-tests.patch
@@ -0,0 +1,24 @@
+--- contrib/python/websocket-client/websocket/tests/test_http.py (index)
++++ contrib/python/websocket-client/websocket/tests/test_http.py (working tree)
+@@ -74,7 +74,8 @@ class HeaderSockMock(SockMock):
+
+ def __init__(self, fname):
+ SockMock.__init__(self)
+- path = os.path.join(os.path.dirname(__file__), fname)
++ import yatest.common as yc
++ path = os.path.join(os.path.dirname(yc.source_path(__file__)), fname)
+ with open(path, "rb") as f:
+ self.add_packet(f.read())
+
+--- contrib/python/websocket-client/websocket/tests/test_websocket.py (index)
++++ contrib/python/websocket-client/websocket/tests/test_websocket.py (working tree)
+@@ -86,7 +86,8 @@ class HeaderSockMock(SockMock):
+
+ def __init__(self, fname):
+ SockMock.__init__(self)
+- path = os.path.join(os.path.dirname(__file__), fname)
++ import yatest.common as yc
++ path = os.path.join(os.path.dirname(yc.source_path(__file__)), fname)
+ with open(path, "rb") as f:
+ self.add_packet(f.read())
+