From 8bb3977cb6f8d422dd0d469d9d3c8dbb87704d4f Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Tue, 26 Jan 2021 00:48:01 -0800 Subject: [PATCH] Doc: Move the module declaration to index.rst When the declaration stays in reference.rst, it creates duplicated "pytest" symbols such as `pytest.pytest.mark.filterwarnings`. --- doc/en/index.rst | 1 + doc/en/reference.rst | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/en/index.rst b/doc/en/index.rst index 58f6c1d86c7..7c4d9394de9 100644 --- a/doc/en/index.rst +++ b/doc/en/index.rst @@ -11,6 +11,7 @@ pytest: helps you write better programs ======================================= +.. module:: pytest The ``pytest`` framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 51c52b33ae9..bc6c5670a5c 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -3,8 +3,6 @@ API Reference ============= -.. module:: pytest - This page contains the full reference to pytest's API. .. contents::