Skip to content

Commit a8a1dd2

Browse files
committed
debug
1 parent c30c898 commit a8a1dd2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

test/asynchronous/test_srv_polling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import asyncio
1919
import sys
2020
import time
21+
from test.asynchronous.utils import flaky
2122
from test.utils_shared import FunctionCallRecorder
2223
from typing import Any
2324

@@ -254,6 +255,7 @@ def final_callback():
254255
# Nodelist should reflect new valid DNS resolver response.
255256
await self.assert_nodelist_change(response_final, client)
256257

258+
@flaky # PYTHON-5315
257259
async def test_recover_from_initially_empty_seedlist(self):
258260
def empty_seedlist():
259261
return []

test/asynchronous/unified_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,8 +1380,8 @@ async def run_scenario(self, spec, uri=None):
13801380
for flaky_test in flaky_tests:
13811381
if re.match(flaky_test, self.id()) is not None:
13821382
decorator = flaky(reset_func=self.asyncSetUp, func_name=self.id())
1383-
func = decorator(func)
1384-
break
1383+
await decorator(func)
1384+
return
13851385
await func()
13861386

13871387
async def _run_scenario(self, spec, uri=None):

test/test_srv_polling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import asyncio
1919
import sys
2020
import time
21+
from test.utils import flaky
2122
from test.utils_shared import FunctionCallRecorder
2223
from typing import Any
2324

@@ -254,6 +255,7 @@ def final_callback():
254255
# Nodelist should reflect new valid DNS resolver response.
255256
self.assert_nodelist_change(response_final, client)
256257

258+
@flaky # PYTHON-5315
257259
def test_recover_from_initially_empty_seedlist(self):
258260
def empty_seedlist():
259261
return []

test/unified_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,8 @@ def run_scenario(self, spec, uri=None):
13671367
for flaky_test in flaky_tests:
13681368
if re.match(flaky_test, self.id()) is not None:
13691369
decorator = flaky(reset_func=self.setUp, func_name=self.id())
1370-
func = decorator(func)
1371-
break
1370+
decorator(func)
1371+
return
13721372
func()
13731373

13741374
def _run_scenario(self, spec, uri=None):

0 commit comments

Comments
 (0)