Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 373d59c

Browse files
committed
fixed system tests
1 parent e628ca9 commit 373d59c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/system/test_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def _clean_results(results):
133133
except Exception as e:
134134
# if we expect the query to fail, capture the exception
135135
query_exception = e
136-
pipeline = query.pipeline()
136+
client = query._client
137+
pipeline = client.pipeline().create_from(query)
137138
if query_exception:
138139
# ensure that the pipeline uses same error as query
139140
with pytest.raises(query_exception.__class__):

tests/system/test_system_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ def _clean_results(results):
213213
except Exception as e:
214214
# if we expect the query to fail, capture the exception
215215
query_exception = e
216-
pipeline = query.pipeline()
216+
client = query._client
217+
pipeline = client.pipeline().create_from(query)
217218
if query_exception:
218219
# ensure that the pipeline uses same error as query
219220
with pytest.raises(query_exception.__class__):

0 commit comments

Comments
 (0)