summaryrefslogtreecommitdiffstats
path: root/Doc/library/doctest.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-05 12:30:19 (GMT)
committerGitHub <noreply@github.com>2022-07-05 12:30:19 (GMT)
commit77bf9739305a0c9178ec94338c1289df0bdce738 (patch)
tree8ab4e5ebfcc070f6d56b28f6048ef95f0bcfb9db /Doc/library/doctest.rst
parent99a06685d4034a9b3d4dd898292926932168d94d (diff)
downloadcpython-77bf9739305a0c9178ec94338c1289df0bdce738.zip
cpython-77bf9739305a0c9178ec94338c1289df0bdce738.tar.gz
cpython-77bf9739305a0c9178ec94338c1289df0bdce738.tar.bz2
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94557)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 (cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r--Doc/library/doctest.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 2d50a49..75c6ee2 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -565,12 +565,12 @@ doctest decides whether actual output matches an example's expected output:
When specified, doctests expecting exceptions pass so long as an exception
of the expected type is raised, even if the details
- (message and fully-qualified exception name) don't match.
+ (message and fully qualified exception name) don't match.
For example, an example expecting ``ValueError: 42`` will pass if the actual
exception raised is ``ValueError: 3*14``, but will fail if, say, a
:exc:`TypeError` is raised instead.
- It will also ignore any fully-qualified name included before the
+ It will also ignore any fully qualified name included before the
exception class, which can vary between implementations and versions
of Python and the code/libraries in use.
Hence, all three of these variations will work with the flag specified: