tests: Fix another ResourceWarning · python/asyncio@cd4fdbb (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Commit cd4fdbb
tests: Fix another ResourceWarning
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2212,6 +2212,10 @@ def setUp(self): | ||
2212 | 2212 | self.loop = asyncio.new_event_loop() |
2213 | 2213 | asyncio.set_event_loop(None) |
2214 | 2214 | |
2215 | +def tearDown(self): | |
2216 | +self.loop.close() | |
2217 | +self.loop = None | |
2218 | + | |
2215 | 2219 | def test_sleep_zero(self): |
2216 | 2220 | result = 0 |
2217 | 2221 |