Skip to content

Commit

Permalink
fix #1787
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Jan 20, 2021
1 parent dbf7fcc commit 39ccaf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion M2/Macaulay2/m2/testing.m2
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39ccaf2

Please sign in to comment.