Skip to content

Commit 3c5695f

Browse files
committed
try without exc
1 parent 9cc74c7 commit 3c5695f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/asynchronous/test_srv_polling.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ async def test_dns_failures(self):
219219
for exc in (exception.FormError, exception.Timeout, exception.TooBig):
220220

221221
def response_callback(*args):
222-
raise exc("DNS Failure!")
222+
# raise exc("DNS Failure!")
223+
pass
223224

224225
print(exc)
225-
await asyncio.sleep(0.5)
226+
# await asyncio.sleep(0.5)
226227

227228
await self.run_scenario(response_callback, False)
228229

test/test_srv_polling.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ def test_dns_failures(self):
219219
for exc in (exception.FormError, exception.Timeout, exception.TooBig):
220220

221221
def response_callback(*args):
222-
raise exc("DNS Failure!")
222+
# raise exc("DNS Failure!")
223+
pass
223224

224225
print(exc)
225-
time.sleep(0.5)
226+
# time.sleep(0.5)
226227

227228
self.run_scenario(response_callback, False)
228229

0 commit comments

Comments
 (0)