Code Duplication    Length = 10-10 lines in 2 locations

docs/check_docs.py 2 locations

@@ 18-27 (lines=10) @@
15
        print(stdout)
16
17
18
def test_build_docs(tmpdir):
19
    doctrees = tmpdir.join("doctrees")
20
    htmldir = tmpdir.join("html")
21
    p = Popen([
22
        "sphinx-build", "-W", "-bhtml",
23
        "-d", str(doctrees), "source", str(htmldir)
24
    ], stdout=PIPE, stderr=STDOUT)
25
    stdout, _ = p.communicate()
26
    if not p.wait() == 0:
27
        print(stdout)
28
@@ 6-15 (lines=10) @@
3
from subprocess import Popen, PIPE, STDOUT
4
5
6
def test_linkcheck(tmpdir):
7
    doctrees = tmpdir.join("doctrees")
8
    htmldir = tmpdir.join("html")
9
    p = Popen([
10
        "sphinx-build", "-W", "-blinkcheck",
11
        "-d", str(doctrees), "source", str(htmldir)
12
    ], stdout=PIPE, stderr=STDOUT)
13
    stdout, _ = p.communicate()
14
    if not p.wait() == 0:
15
        print(stdout)
16
17
18
def test_build_docs(tmpdir):