diff --git a/doc/en/capture.rst b/doc/en/capture.rst index 3982c6116..45892a98e 100644 --- a/doc/en/capture.rst +++ b/doc/en/capture.rst @@ -168,5 +168,3 @@ as a context manager, disabling capture inside the ``with`` block: with capsys.disabled(): print("output not captured, going directly to sys.stdout") print("this output is also captured") - -.. include:: links.inc diff --git a/doc/en/conf.py b/doc/en/conf.py index 71f63712e..3da401f89 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -83,7 +83,6 @@ copyright = "2015–2020, holger krekel and pytest-dev team" # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [ - "links.inc", "_build", "naming20.rst", "test/*", diff --git a/doc/en/existingtestsuite.rst b/doc/en/existingtestsuite.rst index cda38918c..1e3e192bf 100644 --- a/doc/en/existingtestsuite.rst +++ b/doc/en/existingtestsuite.rst @@ -32,5 +32,3 @@ reinstall every time you want to run your tests, and is less brittle than mucking about with sys.path to point your tests at local code. Also consider using :ref:`tox `. - -.. include:: links.inc diff --git a/doc/en/faq.rst b/doc/en/faq.rst index 5b13818ea..42a2a847b 100644 --- a/doc/en/faq.rst +++ b/doc/en/faq.rst @@ -153,4 +153,6 @@ As of mid-2013, there shouldn't be a problem anymore when you use the standard setuptools (note that distribute has been merged back into setuptools which is now shipped directly with virtualenv). -.. include:: links.inc +.. _nose: https://nose.readthedocs.io/en/latest/ +.. _pylib: https://py.readthedocs.io/en/latest/ +.. _`xUnit style setup`: xunit_setup.html diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 83b4677e9..a1bdf16fe 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -203,5 +203,3 @@ Check out additional pytest resources to help you customize tests for your uniqu * ":ref:`fixtures`" for providing a functional baseline to your tests * ":ref:`plugins`" for managing and writing plugins * ":ref:`goodpractices`" for virtualenv and test layouts - -.. include:: links.inc diff --git a/doc/en/goodpractices.rst b/doc/en/goodpractices.rst index 4da9d1bca..16b41eda4 100644 --- a/doc/en/goodpractices.rst +++ b/doc/en/goodpractices.rst @@ -232,5 +232,4 @@ options. It will run tests against the installed package and not against your source code checkout, helping to detect packaging glitches. - -.. include:: links.inc +.. _`venv`: https://docs.python.org/3/library/venv.html diff --git a/doc/en/links.inc b/doc/en/links.inc deleted file mode 100644 index 7c5e8d88c..000000000 --- a/doc/en/links.inc +++ /dev/null @@ -1,22 +0,0 @@ - -.. _`skipping plugin`: plugin/skipping.html -.. _`funcargs mechanism`: funcargs.html -.. _`doctest.py`: http://docs.python.org/library/doctest.html -.. _`xUnit style setup`: xunit_setup.html -.. _`pytest_nose`: plugin/nose.html -.. _`reStructured Text`: http://docutils.sourceforge.net -.. _`Python debugger`: http://docs.python.org/lib/module-pdb.html -.. _nose: https://nose.readthedocs.io/en/latest/ -.. _pytest: https://pypi.org/project/pytest/ -.. _mercurial: http://mercurial.selenic.com/wiki/ -.. _`setuptools`: https://pypi.org/project/setuptools/ -.. _`easy_install`: -.. _`distribute docs`: -.. _`distribute`: https://pypi.org/project/distribute/ -.. _`pip`: https://pypi.org/project/pip/ -.. _`venv`: https://docs.python.org/3/library/venv.html -.. _`virtualenv`: https://pypi.org/project/virtualenv/ -.. _hudson: http://hudson-ci.org/ -.. _jenkins: http://jenkins-ci.org/ -.. _tox: http://testrun.org/tox -.. _pylib: https://py.readthedocs.io/en/latest/ diff --git a/doc/en/nose.rst b/doc/en/nose.rst index bf416132c..2939d91e5 100644 --- a/doc/en/nose.rst +++ b/doc/en/nose.rst @@ -3,8 +3,6 @@ Running tests written for nose ======================================= -.. include:: links.inc - ``pytest`` has basic support for running tests written for nose_. .. _nosestyle: @@ -72,3 +70,5 @@ Unsupported idioms / known issues There are no plans to fix this currently because ``yield``-tests are deprecated in pytest 3.0, with ``pytest.mark.parametrize`` being the recommended alternative. + +.. _nose: https://nose.readthedocs.io/en/latest/ diff --git a/doc/en/usage.rst b/doc/en/usage.rst index 961e813cf..42b2384a2 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -831,5 +831,4 @@ hook was invoked: multiple calls to ``pytest.main()`` from the same process (in order to re-run tests, for example) is not recommended. - -.. include:: links.inc +.. _jenkins: http://jenkins-ci.org/