* tests/python/ipnbdoctest.py: Also retry if Kernel does not respond.

This commit is contained in:
Alexandre Duret-Lutz 2022-10-03 11:17:51 +02:00
parent 74b752eb79
commit fa4500a8d3

View file

@ -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)