]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] unittest documentation: Spell pytest without the dot (GH-9820) (GH-10156)
authorMariatta <Mariatta@users.noreply.github.com>
Sat, 27 Oct 2018 18:28:06 +0000 (11:28 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Oct 2018 18:28:06 +0000 (11:28 -0700)
Referring to ``pytest`` as ``py.test`` is deprecated..
(cherry picked from commit d855f2fdbd73016ece9b58e6f6ac26cf986fabf6)

Co-authored-by: Andreas Pelme <andreas@pelme.se>
Doc/library/unittest.rst

index dd85e9e33d9c8cc1a213e173d79277209c5c1aac..a43e9453239ca853b322ad07f02cbc642148f9cd 100644 (file)
@@ -56,7 +56,7 @@ test runner
       Kent Beck's original paper on testing frameworks using the pattern shared
       by :mod:`unittest`.
 
-   `Nose <https://nose.readthedocs.org/en/latest/>`_ and `py.test <http://pytest.org>`_
+   `Nose <https://nose.readthedocs.io/>`_ and `pytest <https://docs.pytest.org/>`_
       Third-party unittest frameworks with a lighter-weight syntax for writing
       tests.  For example, ``assert func(10) == 42``.
 
@@ -1142,7 +1142,7 @@ Test cases
       If *delta* is supplied instead of *places* then the difference
       between *first* and *second* must be less or equal to (or greater than) *delta*.
 
-      Supplying both *delta* and *places* raises a ``TypeError``.
+      Supplying both *delta* and *places* raises a :exc:`TypeError`.
 
       .. versionchanged:: 3.2
          :meth:`assertAlmostEqual` automatically considers almost equal objects