From 0cb268c43ea674bf508828cbc1994004b4d18610 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 29 Nov 2021 18:00:25 -0600 Subject: [PATCH 1/2] Skip evaluation of download --- src/pyhf/contrib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/contrib/utils.py b/src/pyhf/contrib/utils.py index b8d3d11023..0149f06b8e 100644 --- a/src/pyhf/contrib/utils.py +++ b/src/pyhf/contrib/utils.py @@ -30,7 +30,7 @@ def download(archive_url, output_directory, force=False, compress=False): Example: >>> from pyhf.contrib.utils import download - >>> download("https://doi.org/10.17182/hepdata.90607.v3/r3", "1Lbb-likelihoods") + >>> download("https://doi.org/10.17182/hepdata.90607.v3/r3", "1Lbb-likelihoods") # doctest: +SKIP >>> import os >>> sorted(os.listdir("1Lbb-likelihoods")) ['BkgOnly.json', 'README.md', 'patchset.json'] From 7636a696bc56d3b9040fafe8e09e97d17c453742 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 29 Nov 2021 18:01:34 -0600 Subject: [PATCH 2/2] Skip download in all parts of doctest --- src/pyhf/contrib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyhf/contrib/utils.py b/src/pyhf/contrib/utils.py index 0149f06b8e..3f369ac678 100644 --- a/src/pyhf/contrib/utils.py +++ b/src/pyhf/contrib/utils.py @@ -32,11 +32,11 @@ def download(archive_url, output_directory, force=False, compress=False): >>> from pyhf.contrib.utils import download >>> download("https://doi.org/10.17182/hepdata.90607.v3/r3", "1Lbb-likelihoods") # doctest: +SKIP >>> import os - >>> sorted(os.listdir("1Lbb-likelihoods")) + >>> sorted(os.listdir("1Lbb-likelihoods")) # doctest: +SKIP ['BkgOnly.json', 'README.md', 'patchset.json'] - >>> download("https://doi.org/10.17182/hepdata.90607.v3/r3", "1Lbb-likelihoods.tar.gz", compress=True) + >>> download("https://doi.org/10.17182/hepdata.90607.v3/r3", "1Lbb-likelihoods.tar.gz", compress=True) # doctest: +SKIP >>> import glob - >>> glob.glob("1Lbb-likelihoods.tar.gz") + >>> glob.glob("1Lbb-likelihoods.tar.gz") # doctest: +SKIP ['1Lbb-likelihoods.tar.gz'] Args: