Skip to content

Commit 15ffcea

Browse files
committed
skip unsupported test
1 parent 2b339ac commit 15ffcea

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

test/asynchronous/unified_format.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,16 @@ async def asyncSetUp(self):
554554

555555
def maybe_skip_test(self, spec):
556556
# add any special-casing for skipping tests here
557-
if "Client side error in command starting transaction" in spec["description"]:
557+
class_name = self.__class__.__name__.lower()
558+
description = spec["description"].lower()
559+
if "Client side error in command starting transaction" in description:
558560
self.skipTest("Implement PYTHON-1894")
559-
if "timeoutMS applied to entire download" in spec["description"]:
561+
if "type=symbol" in description:
562+
self.skipTest("PyMongo does not support the symbol type")
563+
if "timeoutMS applied to entire download" in description:
560564
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
561565
if any(
562-
x in spec["description"]
566+
x in description
563567
for x in [
564568
"First insertOne is never committed",
565569
"Second updateOne is never committed",
@@ -568,8 +572,6 @@ def maybe_skip_test(self, spec):
568572
):
569573
self.skipTest("Implement PYTHON-4597")
570574

571-
class_name = self.__class__.__name__.lower()
572-
description = spec["description"].lower()
573575
if "csot" in class_name:
574576
# Skip tests that are too slow to run on a given platform.
575577
slow_macos = [

test/unified_format.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,16 @@ def setUp(self):
553553

554554
def maybe_skip_test(self, spec):
555555
# add any special-casing for skipping tests here
556-
if "Client side error in command starting transaction" in spec["description"]:
556+
class_name = self.__class__.__name__.lower()
557+
description = spec["description"].lower()
558+
if "Client side error in command starting transaction" in description:
557559
self.skipTest("Implement PYTHON-1894")
558-
if "timeoutMS applied to entire download" in spec["description"]:
560+
if "type=symbol" in description:
561+
self.skipTest("PyMongo does not support the symbol type")
562+
if "timeoutMS applied to entire download" in description:
559563
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
560564
if any(
561-
x in spec["description"]
565+
x in description
562566
for x in [
563567
"First insertOne is never committed",
564568
"Second updateOne is never committed",
@@ -567,8 +571,6 @@ def maybe_skip_test(self, spec):
567571
):
568572
self.skipTest("Implement PYTHON-4597")
569573

570-
class_name = self.__class__.__name__.lower()
571-
description = spec["description"].lower()
572574
if "csot" in class_name:
573575
# Skip tests that are too slow to run on a given platform.
574576
slow_macos = [

0 commit comments

Comments
 (0)