]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
lint: Check doctest code too 2244/head
authorBen Darnell <ben@bendarnell.com>
Sat, 6 Jan 2018 23:49:58 +0000 (18:49 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 6 Jan 2018 23:49:58 +0000 (18:49 -0500)
.flake8
tornado/locks.py

diff --git a/.flake8 b/.flake8
index 8d4ecfb027b3c07350dd2b8e49a18e1f7f74eb4c..1c2c768d1f5011d0899bfa55e70fe7ce6cb988a4 100644 (file)
--- a/.flake8
+++ b/.flake8
@@ -10,3 +10,4 @@ ignore =
     E402,
     # E722 do not use bare except
     E722,
+doctests = true
index fd0ad6af77db84db391523cf89e71cb977e550f5..3ab55a6d7057275f35a980a8c589bdedf3755345 100644 (file)
@@ -467,7 +467,7 @@ class Lock(object):
     ``async with`` includes both the ``yield`` and the ``acquire``
     (just as it does with `threading.Lock`):
 
-    >>> async def f():  # doctest: +SKIP
+    >>> async def f2():  # doctest: +SKIP
     ...    async with lock:
     ...        # Do something holding the lock.
     ...        pass