Skip to content

Commit 00546d1

Browse files
committed
Explicitly close clients before raising SkipTest
1 parent 6c12262 commit 00546d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/asynchronous/unified_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ async def asyncSetUp(self):
498498
# process file-level runOnRequirements
499499
run_on_spec = self.TEST_SPEC.get("runOnRequirements", [])
500500
if not await self.should_run_on(run_on_spec):
501+
await self.client.close()
501502
raise unittest.SkipTest(f"{self.__class__.__name__} runOnRequirements not satisfied")
502503

503504
# add any special-casing for skipping tests here

test/unified_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ def setUp(self):
497497
# process file-level runOnRequirements
498498
run_on_spec = self.TEST_SPEC.get("runOnRequirements", [])
499499
if not self.should_run_on(run_on_spec):
500+
self.client.close()
500501
raise unittest.SkipTest(f"{self.__class__.__name__} runOnRequirements not satisfied")
501502

502503
# add any special-casing for skipping tests here

0 commit comments

Comments
 (0)