aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/websocket-client/py3/websocket/tests
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-10-10 15:49:43 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-10-10 16:00:53 +0300
commitac5aa42143c88e9616c4b6986cf89dad3cdb99ec (patch)
tree8bcfadd1e185eda677ac98486fde6546b7f4e5f7 /contrib/python/websocket-client/py3/websocket/tests
parentf59d36b54f2f6d059da05514d7ef5ecf1ea09b08 (diff)
downloadydb-ac5aa42143c88e9616c4b6986cf89dad3cdb99ec.tar.gz
Intermediate changes
commit_hash:ec2de59c841270f9f65ce794885833c6f4800a62
Diffstat (limited to 'contrib/python/websocket-client/py3/websocket/tests')
-rw-r--r--contrib/python/websocket-client/py3/websocket/tests/test_http.py4
-rw-r--r--contrib/python/websocket-client/py3/websocket/tests/test_websocket.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/websocket-client/py3/websocket/tests/test_http.py b/contrib/python/websocket-client/py3/websocket/tests/test_http.py
index b8b363acc45..72465c22057 100644
--- a/contrib/python/websocket-client/py3/websocket/tests/test_http.py
+++ b/contrib/python/websocket-client/py3/websocket/tests/test_http.py
@@ -81,8 +81,8 @@ class SockMock:
class HeaderSockMock(SockMock):
def __init__(self, fname):
SockMock.__init__(self)
- import yatest.common
- path = yatest.common.source_path(os.path.join('contrib/python/websocket-client/py3/websocket/tests', 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())
diff --git a/contrib/python/websocket-client/py3/websocket/tests/test_websocket.py b/contrib/python/websocket-client/py3/websocket/tests/test_websocket.py
index b665548cda0..892312a2dbd 100644
--- a/contrib/python/websocket-client/py3/websocket/tests/test_websocket.py
+++ b/contrib/python/websocket-client/py3/websocket/tests/test_websocket.py
@@ -83,8 +83,8 @@ class SockMock:
class HeaderSockMock(SockMock):
def __init__(self, fname):
SockMock.__init__(self)
- import yatest.common
- path = yatest.common.source_path(os.path.join('contrib/python/websocket-client/py3/websocket/tests', 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())