From 2fd0c58b79816aeaf0a7800a4f1ce33145bd807a Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Thu, 11 Jan 2024 13:49:20 +0000 Subject: [PATCH] doctests: silence another f%&!$ print statement --- fafbseg/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fafbseg/utils.py b/fafbseg/utils.py index 85e00d6..6e0964c 100644 --- a/fafbseg/utils.py +++ b/fafbseg/utils.py @@ -282,7 +282,7 @@ def download_cache_file(url, filename=None, force_reload=False, verbose=True): is_text = "text" in content_type or "html" in content_type with open(fp, mode="w" if is_text else "w") as f: f.write(r.content.decode()) - if verbose: + if verbose and not os.environ.get("FAFBSEG_TESTING", False): print("Done.") return fp \ No newline at end of file