Python 3.5 adjustments (#13173)

This commit is contained in:
Otto Winter 2018-03-15 12:10:54 +01:00 committed by Johann Kellerman
parent 6909be1cc7
commit 27c1806897
6 changed files with 11 additions and 23 deletions

View file

@ -41,9 +41,7 @@ class TestCheckConfig(unittest.TestCase):
# this ensures we have one.
try:
asyncio.get_event_loop()
except (RuntimeError, AssertionError):
# Py35: RuntimeError
# Py34: AssertionError
except RuntimeError:
asyncio.set_event_loop(asyncio.new_event_loop())
# Will allow seeing full diff