Skip to content

Commit 0b7f216

Browse files
committed
change test dir
1 parent 7f8cfbd commit 0b7f216

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

test/asynchronous/test_retryable_reads.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@
4747
_IS_SYNC = False
4848

4949
# Location of JSON test specifications.
50-
_TEST_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "retryable_reads", "legacy")
50+
if _IS_SYNC:
51+
_TEST_PATH = os.path.join(
52+
os.path.dirname(os.path.realpath(__file__)), "retryable_reads", "legacy"
53+
)
54+
else:
55+
_TEST_PATH = os.path.join(
56+
os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)),
57+
"retryable_reads",
58+
"legacy",
59+
)
5160

5261

5362
class TestClientOptions(AsyncPyMongoTestCase):

test/test_retryable_reads.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@
4747
_IS_SYNC = True
4848

4949
# Location of JSON test specifications.
50-
_TEST_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "retryable_reads", "legacy")
50+
if _IS_SYNC:
51+
_TEST_PATH = os.path.join(
52+
os.path.dirname(os.path.realpath(__file__)), "retryable_reads", "legacy"
53+
)
54+
else:
55+
_TEST_PATH = os.path.join(
56+
os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)),
57+
"retryable_reads",
58+
"legacy",
59+
)
5160

5261

5362
class TestClientOptions(PyMongoTestCase):

0 commit comments

Comments
 (0)