From e1c65891b992d40ebbb009a1465152783a8dbff3 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 11 Aug 2024 21:47:43 -0400 Subject: [PATCH] Use code() instead of help() for "methods" test We just want something that returns a DIV, and calling help() during a test can run out of memory on some systems. --- M2/Macaulay2/tests/normal/methods.m2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2/Macaulay2/tests/normal/methods.m2 b/M2/Macaulay2/tests/normal/methods.m2 index d1b957b1a5..d7680eedeb 100644 --- a/M2/Macaulay2/tests/normal/methods.m2 +++ b/M2/Macaulay2/tests/normal/methods.m2 @@ -129,7 +129,7 @@ assert( chainComplex (new X) === new X ) -- this should list (net/info, HypertextContainer), -- even though HypertextContainer is not exported. -assert(2 == length methods parent class help()) +assert(2 == length methods parent class code first) -- this used to fail because of a bug in (package, Sequence) debug Core assert(1 == length methods needsPackage "FirstPackage")