From fcdc5ff29dd0e747457eef1acc50553a905e22ac Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Tue, 6 Nov 2018 12:41:18 -0500 Subject: [PATCH] Adds a `no cover` line for the `ncores` fallback --- numcodecs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numcodecs/__init__.py b/numcodecs/__init__.py index ab7ae73d..ce5aef10 100644 --- a/numcodecs/__init__.py +++ b/numcodecs/__init__.py @@ -46,7 +46,7 @@ # initialize blosc try: ncores = multiprocessing.cpu_count() - except OSError: + except OSError: # pragma: no cover ncores = 1 blosc.init() blosc.set_nthreads(min(8, ncores))