From 39ccaf2809c8aee5d88ad6f345dd668c5d0eddf8 Mon Sep 17 00:00:00 2001 From: Mahrud Sayrafi Date: Wed, 20 Jan 2021 13:39:54 -0600 Subject: [PATCH] fix #1787 --- M2/Macaulay2/m2/testing.m2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/M2/Macaulay2/m2/testing.m2 b/M2/Macaulay2/m2/testing.m2 index c3967fe2fb8..c00e766dc6c 100644 --- a/M2/Macaulay2/m2/testing.m2 +++ b/M2/Macaulay2/m2/testing.m2 @@ -40,7 +40,8 @@ captureTestResult := (desc, teststring, pkg, usermode) -> ( -- try capturing in the same process if isCapturable(teststring, pkg, true) then ( checkmsg("capturing", desc); - (err, output) := capture(teststring, PackageExports => pkg, UserMode => usermode); + -- TODO: adjust and pass argumentMode, instead. This can be done earlier, too. + (err, output) := capture(teststring, PackageExports => pkg, UserMode => false); if err then printerr "capture failed; retrying ..." else return true); -- fallback to using an external process checkmsg("running", desc);