Python 3.5 adjustments (#13173)

This commit is contained in:
Otto Winter authored and Johann Kellerman committed 2018-03-15 13:10:54 +02:00
1 parent 6909be1cc7
commit 27c1806897
6 files changed
+11 -23

No files matched your search

+1 -3
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