]> git.ipfire.org Git - thirdparty/tornado.git/commit
testing: Don't close the event loop if we didn't create it 2327/head
authorBen Darnell <ben@bendarnell.com>
Sun, 25 Mar 2018 15:50:09 +0000 (11:50 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 25 Mar 2018 15:50:09 +0000 (11:50 -0400)
commitf47d639f90bceaae27019d7949c5cea14a420293
treeb3c48b7a8769db667adb66169806671a4c77b7d1
parentfb74e4816ccfa7fc6a7abd8c8aab1f415cfc1b13
testing: Don't close the event loop if we didn't create it

This improves compatibility with asyncio test frameworks like
pytest-asyncio.

Fixes #2324
tornado/test/testing_test.py
tornado/testing.py