Skip to content

Commit 7eabb79

Browse files
committed
Refactor subprocess command execution in fricas.py
Refactor subprocess call to avoid timeout handling.
1 parent a10ec16 commit 7eabb79

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sage/features/fricas.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ def is_functional(self):
7272
# See :issue:`40569`.
7373
command = ['fricas', '-nosman']
7474
try:
75-
lines = subprocess.check_output(command, input=b')quit\n',
76-
stderr=subprocess.STDOUT, timeout=1)
77-
except subprocess.TimeoutExpired:
78-
return FeatureTestResult(self, False,
79-
reason="Call `{command}` timed out".format(command=" ".join(command)))
75+
lines = subprocess.check_output(command, input=b')quit\n', stderr=subprocess.STDOUT, shell=False)
8076
except subprocess.CalledProcessError as e:
8177
return FeatureTestResult(self, False,
8278
reason="Call `{command}` failed with exit code {e.returncode}".format(command=" ".join(command), e=e))

0 commit comments

Comments
 (0)