Skip to content

Commit e475143

Browse files
committed
PYTHON-5371 - Skip test_continuous_network_errors when debug logs are enabled
1 parent 0ec5778 commit e475143

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/asynchronous/test_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,7 @@ async def test_direct_connection(self):
19061906
with self.assertRaises(ConfigurationError):
19071907
AsyncMongoClient(["host1", "host2"], directConnection=True)
19081908

1909+
@unittest.skipIf(os.environ.get("DEBUG_LOG"), "Enabling debug logs breaks this test")
19091910
@unittest.skipIf("PyPy" in sys.version, "PYTHON-2927 fails often on PyPy")
19101911
async def test_continuous_network_errors(self):
19111912
def server_description_count():

test/test_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ def test_direct_connection(self):
18631863
with self.assertRaises(ConfigurationError):
18641864
MongoClient(["host1", "host2"], directConnection=True)
18651865

1866+
@unittest.skipIf(os.environ.get("DEBUG_LOG"), "Enabling debug logs breaks this test")
18661867
@unittest.skipIf("PyPy" in sys.version, "PYTHON-2927 fails often on PyPy")
18671868
def test_continuous_network_errors(self):
18681869
def server_description_count():

0 commit comments

Comments
 (0)