]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix various typos in testing.py 1825/head
authorSamuel Dion-Girardeau <samuel.diongirardeau@gmail.com>
Fri, 9 Sep 2016 01:42:51 +0000 (21:42 -0400)
committerSamuel Dion-Girardeau <samuel.diongirardeau@gmail.com>
Fri, 9 Sep 2016 01:42:51 +0000 (21:42 -0400)
tornado/testing.py

index 35cc6eac2c2ca1fb720e3e85136b71d07f955cf9..902bfdfca950f0b20de3ef1cce4aa1f34632ddd8 100644 (file)
@@ -2,7 +2,7 @@
 """Support classes for automated testing.
 
 * `AsyncTestCase` and `AsyncHTTPTestCase`:  Subclasses of unittest.TestCase
-  with additional support for testing asynchronous (`.IOLoop` based) code.
+  with additional support for testing asynchronous (`.IOLoop`-based) code.
 
 * `ExpectLog` and `LogTrapTestCase`: Make test logs less spammy.
 
@@ -127,7 +127,7 @@ class _TestMethodWrapper(object):
     method yields it must use a decorator to consume the generator),
     but will also detect other kinds of return values (these are not
     necessarily errors, but we alert anyway since there is no good
-    reason to return a value from a test.
+    reason to return a value from a test).
     """
     def __init__(self, orig_method):
         self.orig_method = orig_method
@@ -621,7 +621,7 @@ class ExpectLog(logging.Filter):
             an empty string to watch the root logger.
         :param regex: Regular expression to match.  Any log entries on
             the specified logger that match this regex will be suppressed.
-        :param required: If true, an exeption will be raised if the end of
+        :param required: If true, an exception will be raised if the end of
             the ``with`` statement is reached without matching any log entries.
         """
         if isinstance(logger, basestring_type):