Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Ignore event loop policy warnings during the tests"
This reverts commit 2e55a60.
  • Loading branch information
Vincent Michel
Vincent Michel committed Jun 3, 2016
commit 1c3a166af007bd517b4f09796b97f9f181a11a5d
4 changes: 0 additions & 4 deletions asyncio/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ def set_event_loop(self, loop, *, cleanup=True):
assert loop is not None
# ensure that the event loop is passed explicitly in asyncio
events.set_event_loop(None)
# Disable event loop policy warnings
events.get_event_loop_policy()._warnings = False
if cleanup:
self.addCleanup(loop.close)

Expand All @@ -419,8 +417,6 @@ def new_test_loop(self, gen=None):

def tearDown(self):
events.set_event_loop(None)
# Enable event loop policy warnings
events.get_event_loop_policy()._warnings = True

# Detect CPython bug #23353: ensure that yield/yield-from is not used
# in an except block of a generator
Expand Down