diff --git a/docs/guide/async.rst b/docs/guide/async.rst
index fb350d94..60f8a23b 100644
--- a/docs/guide/async.rst
+++ b/docs/guide/async.rst
@@ -91,7 +91,6 @@ And again with a `.Future` instead of a callback:
 .. testcode::
 
     from tornado.concurrent import Future
-    from tornado.httpclient import AsyncHTTPClient
 
     def async_fetch_future(url):
         http_client = AsyncHTTPClient()
diff --git a/docs/releases.rst b/docs/releases.rst
index 74afb455..6f87edc3 100644
--- a/docs/releases.rst
+++ b/docs/releases.rst
@@ -4,6 +4,7 @@ Release notes
 .. toctree::
    :maxdepth: 2
 
+   releases/v5.0.2
    releases/v5.0.1
    releases/v5.0.0
    releases/v4.5.3
diff --git a/docs/releases/v5.0.2.rst b/docs/releases/v5.0.2.rst
new file mode 100644
index 00000000..d16b3a8e
--- /dev/null
+++ b/docs/releases/v5.0.2.rst
@@ -0,0 +1,18 @@
+What's new in Tornado 5.0.1
+===========================
+
+Apr 7, 2018
+-----------
+
+Bug fixes
+~~~~~~~~~
+
+- Fixed a memory leak when `.IOLoop` objects are created and destroyed.
+- If `.AsyncTestCase.get_new_ioloop` returns a reference to a
+  preexisting event loop (typically when it has been overridden to
+  return `.IOLoop.current()`), the test's ``tearDown`` method will not
+  close this loop.
+- Fixed a confusing error message when the synchronous `.HTTPClient`
+  fails to initialize because an event loop is already running.
+- `.PeriodicCallback` no longer executes twice in a row due to
+  backwards clock adjustments.
diff --git a/setup.py b/setup.py
index 239d47c5..1f71d6cd 100644
--- a/setup.py
+++ b/setup.py
@@ -103,7 +103,7 @@ http://api.mongodb.org/python/current/installation.html#osx
 
 kwargs = {}
 
-version = "5.0.1"
+version = "5.0.2"
 
 with open('README.rst') as f:
     kwargs['long_description'] = f.read()
diff --git a/tornado/__init__.py b/tornado/__init__.py
index d577e8f2..07df195b 100644
--- a/tornado/__init__.py
+++ b/tornado/__init__.py
@@ -24,5 +24,5 @@ from __future__ import absolute_import, division, print_function
 # is zero for an official release, positive for a development branch,
 # or negative for a release candidate or beta (after the base version
 # number has been incremented)
-version = "5.0.1"
-version_info = (5, 0, 1, 0)
+version = "5.0.2"
+version_info = (5, 0, 2, 0)
diff --git a/tornado/httpclient.py b/tornado/httpclient.py
index 3547631d..9c438d15 100644
--- a/tornado/httpclient.py
+++ b/tornado/httpclient.py
@@ -54,8 +54,10 @@ from tornado.util import Configurable
 class HTTPClient(object):
     """A blocking HTTP client.
 
-    This interface is provided for convenience and testing; most applications
-    that are running an IOLoop will want to use `AsyncHTTPClient` instead.
+    This interface is provided to make it easier to share code between
+    synchronous and asynchronous applications. Applications that are
+    running an `.IOLoop` must use `AsyncHTTPClient` instead.
+
     Typical usage looks like this::
 
         http_client = httpclient.HTTPClient()
@@ -70,8 +72,19 @@ class HTTPClient(object):
             # Other errors are possible, such as IOError.
             print("Error: " + str(e))
         http_client.close()
+
+    .. versionchanged:: 5.0
+
+       Due to limitations in `asyncio`, it is no longer possible to
+       use the synchronous ``HTTPClient`` while an `.IOLoop` is running.
+       Use `AsyncHTTPClient` instead.
+
     """
     def __init__(self, async_client_class=None, **kwargs):
+        # Initialize self._closed at the beginning of the constructor
+        # so that an exception raised here doesn't lead to confusing
+        # failures in __del__.
+        self._closed = True
         self._io_loop = IOLoop(make_current=False)
         if async_client_class is None:
             async_client_class = AsyncHTTPClient
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index 839e7ee5..48700139 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -47,7 +47,6 @@ import threading
 import time
 import traceback
 import math
-import weakref
 
 from tornado.concurrent import Future, is_future, chain_future, future_set_exc_info, future_add_done_callback  # noqa: E501
 from tornado.log import app_log, gen_log
@@ -185,7 +184,7 @@ class IOLoop(Configurable):
     _current = threading.local()
 
     # In Python 3, _ioloop_for_asyncio maps from asyncio loops to IOLoops.
-    _ioloop_for_asyncio = weakref.WeakKeyDictionary()
+    _ioloop_for_asyncio = dict()
 
     @classmethod
     def configure(cls, impl, **kwargs):
@@ -1214,11 +1213,31 @@ class PeriodicCallback(object):
 
     def _schedule_next(self):
         if self._running:
-            current_time = self.io_loop.time()
-
-            if self._next_timeout <= current_time:
-                callback_time_sec = self.callback_time / 1000.0
-                self._next_timeout += (math.floor((current_time - self._next_timeout) /
-                                                  callback_time_sec) + 1) * callback_time_sec
-
+            self._update_next(self.io_loop.time())
             self._timeout = self.io_loop.add_timeout(self._next_timeout, self._run)
+
+    def _update_next(self, current_time):
+        callback_time_sec = self.callback_time / 1000.0
+        if self._next_timeout <= current_time:
+            # The period should be measured from the start of one call
+            # to the start of the next. If one call takes too long,
+            # skip cycles to get back to a multiple of the original
+            # schedule.
+            self._next_timeout += (math.floor((current_time - self._next_timeout) /
+                                              callback_time_sec) + 1) * callback_time_sec
+        else:
+            # If the clock moved backwards, ensure we advance the next
+            # timeout instead of recomputing the same value again.
+            # This may result in long gaps between callbacks if the
+            # clock jumps backwards by a lot, but the far more common
+            # scenario is a small NTP adjustment that should just be
+            # ignored.
+            #
+            # Note that on some systems if time.time() runs slower
+            # than time.monotonic() (most common on windows), we
+            # effectively experience a small backwards time jump on
+            # every iteration because PeriodicCallback uses
+            # time.time() while asyncio schedules callbacks using
+            # time.monotonic().
+            # https://github.com/tornadoweb/tornado/issues/2333
+            self._next_timeout += callback_time_sec
diff --git a/tornado/platform/asyncio.py b/tornado/platform/asyncio.py
index b2ad9fe6..b6a490af 100644
--- a/tornado/platform/asyncio.py
+++ b/tornado/platform/asyncio.py
@@ -38,6 +38,20 @@ class BaseAsyncIOLoop(IOLoop):
         self.readers = set()
         self.writers = set()
         self.closing = False
+        # If an asyncio loop was closed through an asyncio interface
+        # instead of IOLoop.close(), we'd never hear about it and may
+        # have left a dangling reference in our map. In case an
+        # application (or, more likely, a test suite) creates and
+        # destroys a lot of event loops in this way, check here to
+        # ensure that we don't have a lot of dead loops building up in
+        # the map.
+        #
+        # TODO(bdarnell): consider making self.asyncio_loop a weakref
+        # for AsyncIOMainLoop and make _ioloop_for_asyncio a
+        # WeakKeyDictionary.
+        for loop in list(IOLoop._ioloop_for_asyncio):
+            if loop.is_closed():
+                del IOLoop._ioloop_for_asyncio[loop]
         IOLoop._ioloop_for_asyncio[asyncio_loop] = self
         super(BaseAsyncIOLoop, self).initialize(**kwargs)
 
@@ -49,6 +63,7 @@ class BaseAsyncIOLoop(IOLoop):
             if all_fds:
                 self.close_fd(fileobj)
         self.asyncio_loop.close()
+        del IOLoop._ioloop_for_asyncio[self.asyncio_loop]
 
     def add_handler(self, fd, handler, events):
         fd, fileobj = self.split_fd(fd)

Release 5.0.2
We've fixed a few regressions since 5.0.1, so it's about time for a new release. I think it should include

- #2326 (memory leak, especially with sync HTTPClient)
- #2327 (testing, improves compatibility with pytest-asyncio)
- #2338 (PeriodicCallback misbehaves when clock moves backwards)

diff --git a/tornado/test/asyncio_test.py b/tornado/test/asyncio_test.py
index 41fda20d..02545882 100644
--- a/tornado/test/asyncio_test.py
+++ b/tornado/test/asyncio_test.py
@@ -122,6 +122,44 @@ class AsyncIOLoopTest(AsyncTestCase):
             42)
 
 
+@unittest.skipIf(asyncio is None, "asyncio module not present")
+class LeakTest(unittest.TestCase):
+    def setUp(self):
+        # Trigger a cleanup of the mapping so we start with a clean slate.
+        AsyncIOLoop().close()
+        # If we don't clean up after ourselves other tests may fail on
+        # py34.
+        self.orig_policy = asyncio.get_event_loop_policy()
+        asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
+
+    def tearDown(self):
+        asyncio.get_event_loop().close()
+        asyncio.set_event_loop_policy(self.orig_policy)
+
+    def test_ioloop_close_leak(self):
+        orig_count = len(IOLoop._ioloop_for_asyncio)
+        for i in range(10):
+            # Create and close an AsyncIOLoop using Tornado interfaces.
+            loop = AsyncIOLoop()
+            loop.close()
+        new_count = len(IOLoop._ioloop_for_asyncio) - orig_count
+        self.assertEqual(new_count, 0)
+
+    def test_asyncio_close_leak(self):
+        orig_count = len(IOLoop._ioloop_for_asyncio)
+        for i in range(10):
+            # Create and close an AsyncIOMainLoop using asyncio interfaces.
+            loop = asyncio.new_event_loop()
+            loop.call_soon(IOLoop.current)
+            loop.call_soon(loop.stop)
+            loop.run_forever()
+            loop.close()
+        new_count = len(IOLoop._ioloop_for_asyncio) - orig_count
+        # Because the cleanup is run on new loop creation, we have one
+        # dangling entry in the map (but only one).
+        self.assertEqual(new_count, 1)
+
+
 @unittest.skipIf(asyncio is None, "asyncio module not present")
 class AnyThreadEventLoopPolicyTest(unittest.TestCase):
     def setUp(self):
diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py
index 1aa3f1e5..c202b9a0 100644
--- a/tornado/test/ioloop_test.py
+++ b/tornado/test/ioloop_test.py
@@ -785,6 +785,62 @@ class TestPeriodicCallback(unittest.TestCase):
         io_loop.close()
 
 
+class TestPeriodicCallbackMath(unittest.TestCase):
+    def simulate_calls(self, pc, durations):
+        """Simulate a series of calls to the PeriodicCallback.
+
+        Pass a list of call durations in seconds (negative values
+        work to simulate clock adjustments during the call, or more or
+        less equivalently, between calls). This method returns the
+        times at which each call would be made.
+        """
+        calls = []
+        now = 1000
+        pc._next_timeout = now
+        for d in durations:
+            pc._update_next(now)
+            calls.append(pc._next_timeout)
+            now = pc._next_timeout + d
+        return calls
+
+    def test_basic(self):
+        pc = PeriodicCallback(None, 10000)
+        self.assertEqual(self.simulate_calls(pc, [0] * 5),
+                         [1010, 1020, 1030, 1040, 1050])
+
+    def test_overrun(self):
+        # If a call runs for too long, we skip entire cycles to get
+        # back on schedule.
+        call_durations = [9, 9, 10, 11, 20, 20, 35, 35, 0, 0, 0]
+        expected = [
+            1010, 1020, 1030,  # first 3 calls on schedule
+            1050, 1070,  # next 2 delayed one cycle
+            1100, 1130,  # next 2 delayed 2 cycles
+            1170, 1210,  # next 2 delayed 3 cycles
+            1220, 1230,  # then back on schedule.
+        ]
+
+        pc = PeriodicCallback(None, 10000)
+        self.assertEqual(self.simulate_calls(pc, call_durations),
+                         expected)
+
+    def test_clock_backwards(self):
+        pc = PeriodicCallback(None, 10000)
+        # Backwards jumps are ignored, potentially resulting in a
+        # slightly slow schedule (although we assume that when
+        # time.time() and time.monotonic() are different, time.time()
+        # is getting adjusted by NTP and is therefore more accurate)
+        self.assertEqual(self.simulate_calls(pc, [-2, -1, -3, -2, 0]),
+                         [1010, 1020, 1030, 1040, 1050])
+
+        # For big jumps, we should perhaps alter the schedule, but we
+        # don't currently. This trace shows that we run callbacks
+        # every 10s of time.time(), but the first and second calls are
+        # 110s of real time apart because the backwards jump is
+        # ignored.
+        self.assertEqual(self.simulate_calls(pc, [-100, 0, 0]),
+                         [1010, 1020, 1030])
+
 class TestIOLoopConfiguration(unittest.TestCase):
     def run_python(self, *statements):
         statements = [
diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py
index 796530ff..e1f34f08 100644
--- a/tornado/test/testing_test.py
+++ b/tornado/test/testing_test.py
@@ -11,6 +11,11 @@ import platform
 import traceback
 import warnings
 
+try:
+    import asyncio
+except ImportError:
+    asyncio = None
+
 
 @contextlib.contextmanager
 def set_environ(name, value):
@@ -310,5 +315,30 @@ class GenTest(AsyncTestCase):
             self.finished = True
 
 
+@unittest.skipIf(asyncio is None, "asyncio module not present")
+class GetNewIOLoopTest(AsyncTestCase):
+    def get_new_ioloop(self):
+        # Use the current loop instead of creating a new one here.
+        return ioloop.IOLoop.current()
+
+    def setUp(self):
+        # This simulates the effect of an asyncio test harness like
+        # pytest-asyncio.
+        self.orig_loop = asyncio.get_event_loop()
+        self.new_loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(self.new_loop)
+        super(GetNewIOLoopTest, self).setUp()
+
+    def tearDown(self):
+        super(GetNewIOLoopTest, self).tearDown()
+        # AsyncTestCase must not affect the existing asyncio loop.
+        self.assertFalse(asyncio.get_event_loop().is_closed())
+        asyncio.set_event_loop(self.orig_loop)
+        self.new_loop.close()
+
+    def test_loop(self):
+        self.assertIs(self.io_loop.asyncio_loop, self.new_loop)
+
+
 if __name__ == '__main__':
     unittest.main()
diff --git a/tornado/testing.py b/tornado/testing.py
index 400dd3e4..19bc5a94 100644
--- a/tornado/testing.py
+++ b/tornado/testing.py
@@ -74,6 +74,12 @@ else:
         import unittest  # type: ignore
 
 
+if asyncio is None:
+    _NON_OWNED_IOLOOPS = ()
+else:
+    import tornado.platform.asyncio
+    _NON_OWNED_IOLOOPS = tornado.platform.asyncio.AsyncIOMainLoop
+
 def bind_unused_port(reuse_port=False):
     """Binds a server socket to an available port on localhost.
 
@@ -216,11 +222,12 @@ class AsyncTestCase(unittest.TestCase):
         # Clean up Subprocess, so it can be used again with a new ioloop.
         Subprocess.uninitialize()
         self.io_loop.clear_current()
-        # Try to clean up any file descriptors left open in the ioloop.
-        # This avoids leaks, especially when tests are run repeatedly
-        # in the same process with autoreload (because curl does not
-        # set FD_CLOEXEC on its file descriptors)
-        self.io_loop.close(all_fds=True)
+        if not isinstance(self.io_loop, _NON_OWNED_IOLOOPS):
+            # Try to clean up any file descriptors left open in the ioloop.
+            # This avoids leaks, especially when tests are run repeatedly
+            # in the same process with autoreload (because curl does not
+            # set FD_CLOEXEC on its file descriptors)
+            self.io_loop.close(all_fds=True)
         super(AsyncTestCase, self).tearDown()
         # In case an exception escaped or the StackContext caught an exception
         # when there wasn't a wait() to re-raise it, do so here.
@@ -229,9 +236,15 @@ class AsyncTestCase(unittest.TestCase):
         self.__rethrow()
 
     def get_new_ioloop(self):
-        """Creates a new `.IOLoop` for this test.  May be overridden in
-        subclasses for tests that require a specific `.IOLoop` (usually
-        the singleton `.IOLoop.instance()`).
+        """Returns the `.IOLoop` to use for this test.
+
+        By default, a new `.IOLoop` is created for each test.
+        Subclasses may override this method to return
+        `.IOLoop.current()` if it is not appropriate to use a new
+        `.IOLoop` in each tests (for example, if there are global
+        singletons using the default `.IOLoop`) or if a per-test event
+        loop is being provided by another system (such as
+        ``pytest-asyncio``).
         """
         return IOLoop()
 

pip install -e .[full]
parse_log_pytest
pytest
pytest
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
-e git+https://github.com/tornadoweb/tornado.git@54ad63e907f4da96d6bddb84b860672b2dc9845b#egg=tornado
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: tornado
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
prefix: /opt/conda/envs/tornado

tornado/test/asyncio_test.py::LeakTest::test_asyncio_close_leak tornado/test/asyncio_test.py::LeakTest::test_ioloop_close_leak tornado/test/ioloop_test.py::TestPeriodicCallbackMath::test_basic tornado/test/ioloop_test.py::TestPeriodicCallbackMath::test_clock_backwards tornado/test/ioloop_test.py::TestPeriodicCallbackMath::test_overrun
tornado/test/asyncio_test.py::AsyncIOLoopTest::test_asyncio_adapter tornado/test/asyncio_test.py::AsyncIOLoopTest::test_asyncio_callback tornado/test/asyncio_test.py::AsyncIOLoopTest::test_asyncio_future tornado/test/asyncio_test.py::AsyncIOLoopTest::test_asyncio_yield_from tornado/test/asyncio_test.py::AnyThreadEventLoopPolicyTest::test_asyncio_accessor tornado/test/asyncio_test.py::AnyThreadEventLoopPolicyTest::test_tornado_accessor tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_from_signal tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_from_signal_other_thread tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_return_sequence tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_wakeup tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_wakeup_other_thread tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_while_closing tornado/test/ioloop_test.py::TestIOLoop::test_add_timeout_return tornado/test/ioloop_test.py::TestIOLoop::test_add_timeout_timedelta tornado/test/ioloop_test.py::TestIOLoop::test_call_at_return tornado/test/ioloop_test.py::TestIOLoop::test_call_later_return tornado/test/ioloop_test.py::TestIOLoop::test_close_file_object tornado/test/ioloop_test.py::TestIOLoop::test_exception_logging tornado/test/ioloop_test.py::TestIOLoop::test_exception_logging_future tornado/test/ioloop_test.py::TestIOLoop::test_exception_logging_native_coro tornado/test/ioloop_test.py::TestIOLoop::test_handle_callback_exception tornado/test/ioloop_test.py::TestIOLoop::test_handler_callback_file_object tornado/test/ioloop_test.py::TestIOLoop::test_mixed_fd_fileobj tornado/test/ioloop_test.py::TestIOLoop::test_multiple_add tornado/test/ioloop_test.py::TestIOLoop::test_read_while_writeable tornado/test/ioloop_test.py::TestIOLoop::test_reentrant tornado/test/ioloop_test.py::TestIOLoop::test_remove_handler_from_handler tornado/test/ioloop_test.py::TestIOLoop::test_remove_timeout_after_fire tornado/test/ioloop_test.py::TestIOLoop::test_remove_timeout_cleanup tornado/test/ioloop_test.py::TestIOLoop::test_remove_timeout_from_timeout tornado/test/ioloop_test.py::TestIOLoop::test_remove_without_add tornado/test/ioloop_test.py::TestIOLoop::test_spawn_callback tornado/test/ioloop_test.py::TestIOLoop::test_timeout_with_arguments tornado/test/ioloop_test.py::TestIOLoopCurrent::test_default_current tornado/test/ioloop_test.py::TestIOLoopCurrent::test_force_current tornado/test/ioloop_test.py::TestIOLoopCurrent::test_non_current tornado/test/ioloop_test.py::TestIOLoopCurrentAsync::test_clear_without_current tornado/test/ioloop_test.py::TestIOLoopAddCallback::test_pre_wrap tornado/test/ioloop_test.py::TestIOLoopAddCallback::test_pre_wrap_with_args tornado/test/ioloop_test.py::TestIOLoopAddCallbackFromSignal::test_pre_wrap tornado/test/ioloop_test.py::TestIOLoopAddCallbackFromSignal::test_pre_wrap_with_args tornado/test/ioloop_test.py::TestIOLoopFutures::test_add_future_stack_context tornado/test/ioloop_test.py::TestIOLoopFutures::test_add_future_threads tornado/test/ioloop_test.py::TestIOLoopFutures::test_run_in_executor_gen tornado/test/ioloop_test.py::TestIOLoopFutures::test_run_in_executor_native tornado/test/ioloop_test.py::TestIOLoopFutures::test_set_default_executor tornado/test/ioloop_test.py::TestIOLoopRunSync::test_async_exception tornado/test/ioloop_test.py::TestIOLoopRunSync::test_async_result tornado/test/ioloop_test.py::TestIOLoopRunSync::test_current tornado/test/ioloop_test.py::TestIOLoopRunSync::test_native_coroutine tornado/test/ioloop_test.py::TestIOLoopRunSync::test_sync_exception tornado/test/ioloop_test.py::TestIOLoopRunSync::test_sync_result tornado/test/ioloop_test.py::TestIOLoopRunSync::test_timeout tornado/test/ioloop_test.py::TestIOLoopConfiguration::test_asyncio tornado/test/ioloop_test.py::TestIOLoopConfiguration::test_asyncio_main tornado/test/ioloop_test.py::TestIOLoopConfiguration::test_default tornado/test/testing_test.py::AsyncTestCaseTest::test_exception_in_callback tornado/test/testing_test.py::AsyncTestCaseTest::test_multiple_errors tornado/test/testing_test.py::AsyncTestCaseTest::test_subsequent_wait_calls tornado/test/testing_test.py::AsyncTestCaseTest::test_wait_timeout tornado/test/testing_test.py::AsyncHTTPTestCaseTest::test_fetch_full_http_url tornado/test/testing_test.py::AsyncHTTPTestCaseTest::test_fetch_full_https_url tornado/test/testing_test.py::AsyncHTTPTestCaseTest::test_fetch_segment tornado/test/testing_test.py::AsyncTestCaseWrapperTest::test_other_return tornado/test/testing_test.py::AsyncTestCaseWrapperTest::test_undecorated_coroutine tornado/test/testing_test.py::AsyncTestCaseWrapperTest::test_undecorated_generator tornado/test/testing_test.py::AsyncTestCaseWrapperTest::test_undecorated_generator_with_skip tornado/test/testing_test.py::SetUpTearDownTest::test_set_up_tear_down tornado/test/testing_test.py::GenTest::test_async tornado/test/testing_test.py::GenTest::test_native_coroutine tornado/test/testing_test.py::GenTest::test_native_coroutine_timeout tornado/test/testing_test.py::GenTest::test_no_timeout tornado/test/testing_test.py::GenTest::test_no_timeout_environment_variable tornado/test/testing_test.py::GenTest::test_sync tornado/test/testing_test.py::GenTest::test_timeout tornado/test/testing_test.py::GenTest::test_timeout_environment_variable tornado/test/testing_test.py::GenTest::test_with_method_args tornado/test/testing_test.py::GenTest::test_with_method_kwargs tornado/test/testing_test.py::GetNewIOLoopTest::test_loop
docs/releases.rst tornado/httpclient.py tornado/__init__.py setup.py tornado/platform/asyncio.py docs/guide/async.rst tornado/ioloop.py docs/releases/v5.0.2.rst
docs/releases.rst tornado/httpclient.py tornado/__init__.py setup.py tornado/platform/asyncio.py docs/guide/async.rst tornado/ioloop.py docs/releases/v5.0.2.rst