Python 3.5 adjustments (#13173)
This commit is contained in:
parent
6909be1cc7
commit
27c1806897
6 changed files with 11 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue