From 0d9e27a363c91f28e58e5825ff3b8f7ad8a5daee Mon Sep 17 00:00:00 2001 From: Emiel van de Laar Date: Fri, 23 Oct 2020 16:31:17 +0200 Subject: [PATCH] doc: Remove unused imports in examples (#7924) The "os" imports in the `tmp_path` and `tmpdir` fixture examples are unused and thus have been removed to prevent confusion. --- doc/en/tmpdir.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/en/tmpdir.rst b/doc/en/tmpdir.rst index a0d5cc0de..c8da5877b 100644 --- a/doc/en/tmpdir.rst +++ b/doc/en/tmpdir.rst @@ -20,8 +20,6 @@ created in the `base temporary directory`_. .. code-block:: python # content of test_tmp_path.py - import os - CONTENT = "content" @@ -97,9 +95,6 @@ and more. Here is an example test usage: .. code-block:: python # content of test_tmpdir.py - import os - - def test_create_file(tmpdir): p = tmpdir.mkdir("sub").join("hello.txt") p.write("content")