* tests/python/ipnbdoctest.py: Also retry if Kernel does not respond.
This commit is contained in:
parent
74b752eb79
commit
fa4500a8d3
1 changed files with 2 additions and 1 deletions
|
|
@ -364,7 +364,8 @@ if __name__ == '__main__':
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
# If the Kernel dies, try again. It seems we have spurious
|
# If the Kernel dies, try again. It seems we have spurious
|
||||||
# failures when multiple instances of jupyter start in parallel.
|
# failures when multiple instances of jupyter start in parallel.
|
||||||
if 'Kernel died' in str(e):
|
stre = str(e)
|
||||||
|
if 'Kernel died' in stre or "Kernel didn't respond" in stre:
|
||||||
tries -= 1
|
tries -= 1
|
||||||
if tries:
|
if tries:
|
||||||
s = random.randint(1, 5)
|
s = random.randint(1, 5)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue