Skip to content

Commit 5de901f

Browse files
committed
No prompt_toolkit in CI testing...
Windows and MacOS don't work well with prompt_toolkit in CI testing
1 parent 3faabee commit 5de901f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_returncode.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ def test_returncode():
1414
assert subprocess.run(["mathicsscript", "-c", "Quit[0]"]).returncode == 0
1515

1616
gcd_file = osp.join(get_testdir(), "data", "recursive-gcd.m")
17-
assert subprocess.run(["mathicsscript", "-f", gcd_file]).returncode == 0
17+
# We add --readline None for OSX and Windows which don't interact well
18+
# with tty's in a CI environment. TODO: separate out Ubuntu and
19+
# use prompt_readline for that?
20+
assert (
21+
subprocess.run(
22+
["mathicsscript", "--readline", "None", "-f", gcd_file]
23+
).returncode
24+
== 0
25+
)
1826

1927

2028
if __name__ == "__main__":

0 commit comments

Comments
 (0)