Skip to content

Commit

Permalink
Use code() instead of help() for "methods" test
Browse files Browse the repository at this point in the history
We just want something that returns a DIV, and calling help() during a
test can run out of memory on some systems.
  • Loading branch information
d-torrance authored and mahrud committed Aug 12, 2024
1 parent cad066e commit 9229147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/tests/normal/methods.m2
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 9229147

Please sign in to comment.