Python 3.5 adjustments (#13173)
This commit is contained in:
1 parent
6909be1cc7
commit
27c1806897
6 files changed
+11
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user