File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ async def test_replace_both_with_two(self):
217217 async def test_dns_failures (self ):
218218 from dns import exception
219219
220- for exc in (exception .FormError , exception .Timeout , exception .TooBig ):
220+ for exc in (exception .FormError , exception .TooBig , exception .Timeout ):
221221
222222 def response_callback (* args ):
223223 raise exc ("DNS Failure!" )
@@ -254,6 +254,9 @@ def final_callback():
254254 # Nodelist should reflect new valid DNS resolver response.
255255 await self .assert_nodelist_change (response_final , client )
256256
257+ # Close the client early to avoid affecting the next scenario run.
258+ await client .close ()
259+
257260 async def test_recover_from_initially_empty_seedlist (self ):
258261 def empty_seedlist ():
259262 return []
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def test_replace_both_with_two(self):
217217 def test_dns_failures (self ):
218218 from dns import exception
219219
220- for exc in (exception .FormError , exception .Timeout , exception .TooBig ):
220+ for exc in (exception .FormError , exception .TooBig , exception .Timeout ):
221221
222222 def response_callback (* args ):
223223 raise exc ("DNS Failure!" )
@@ -254,6 +254,9 @@ def final_callback():
254254 # Nodelist should reflect new valid DNS resolver response.
255255 self .assert_nodelist_change (response_final , client )
256256
257+ # Close the client early to avoid affecting the next scenario run.
258+ client .close ()
259+
257260 def test_recover_from_initially_empty_seedlist (self ):
258261 def empty_seedlist ():
259262 return []
You can’t perform that action at this time.
0 commit comments