Skip to content

Commit 6f70bef

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/forker.py: Do not mask ImportError while calling JobClient
1 parent 7aa393e commit 6f70bef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sage/doctest/forker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,12 +1806,13 @@ def parallel_dispatch(self):
18061806
job_client = None
18071807
try:
18081808
from gnumake_tokenpool import JobClient, NoJobServer
1809+
except ImportError:
1810+
pass
1811+
else:
18091812
try:
18101813
job_client = JobClient(use_cysignals=True)
18111814
except NoJobServer:
18121815
pass
1813-
except ImportError:
1814-
pass
18151816

18161817
source_iter = iter(self.controller.sources)
18171818

0 commit comments

Comments
 (0)