File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1414from __future__ import annotations
1515
1616import os
17+ import pathlib
1718import sys
1819
1920sys .path [0 :0 ] = ["" ]
@@ -45,8 +46,11 @@ async def asyncSetUp(self) -> None:
4546 )
4647
4748
48- _TEST_PATH = os .path .join (os .path .dirname (os .path .realpath (__file__ )), "client-backpressure" )
49-
49+ # Location of JSON test specifications.
50+ if _IS_SYNC :
51+ _TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent , "client-backpressure" )
52+ else :
53+ _TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent .parent , "client-backpressure" )
5054
5155globals ().update (
5256 generate_test_classes (
Original file line number Diff line number Diff line change 1414from __future__ import annotations
1515
1616import os
17+ import pathlib
1718import sys
1819
1920sys .path [0 :0 ] = ["" ]
@@ -43,8 +44,11 @@ def setUp(self) -> None:
4344 self .client = self .rs_or_single_client (event_listeners = [self .listener ], retryWrites = False )
4445
4546
46- _TEST_PATH = os .path .join (os .path .dirname (os .path .realpath (__file__ )), "client-backpressure" )
47-
47+ # Location of JSON test specifications.
48+ if _IS_SYNC :
49+ _TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent , "client-backpressure" )
50+ else :
51+ _TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent .parent , "client-backpressure" )
4852
4953globals ().update (
5054 generate_test_classes (
You can’t perform that action at this time.
0 commit comments