We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077fe7e commit 2b00e5eCopy full SHA for 2b00e5e
graalpython/com.oracle.graal.python.test/src/tests/test_repl.py
@@ -50,7 +50,23 @@
50
import termios
51
from textwrap import dedent
52
53
+ # The terminal tests can be flaky
54
+ def autoretry(fn):
55
+ def decorated(*args, **kwargs):
56
+ retries = 3
57
+ while retries:
58
+ try:
59
+ fn(*args, **kwargs)
60
+ return
61
+ except Exception:
62
+ retries -= 1
63
+ print("Retrying test")
64
+ continue
65
66
+ return decorated
67
68
+
69
+ @autoretry
70
def validate_repl(stdin, python_args=(), ignore_preamble=True):
71
env = os.environ.copy()
72
env['TERM'] = 'ansi'
0 commit comments