Skip to content

Commit 2d7c2c0

Browse files
committed
adjust test
1 parent 74ab69a commit 2d7c2c0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/test_plot_detail.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
pyodide = None # noqa
8787

8888

89-
from test.helper import session
89+
from test.helper import check_evaluation, session
9090

9191
from mathics.builtin.drawing import plot
9292
from mathics.core.expression import Expression
@@ -110,7 +110,11 @@
110110
UPDATE_MODE = False
111111

112112
session.evaluate('LoadModule["pymathics.vectorizedplot"]')
113-
# check_evaluation("?? ContourPlot3D", "aass", "module not loaded")
113+
check_evaluation(
114+
"StringTake[ToString[?? ContourPlot3D],17]",
115+
'"\n ContourPlot3D["',
116+
"module not loaded",
117+
)
114118

115119

116120
def copy_file(dst_fn, src_fn):
@@ -381,8 +385,6 @@ def do_test_all(fns, names=None):
381385
one_test(**parms)
382386

383387

384-
385-
386388
if __name__ == "__main__":
387389
import argparse
388390

@@ -392,7 +394,7 @@ def do_test_all(fns, names=None):
392394
args = parser.parse_args()
393395
UPDATE_MODE = args.update
394396
session.evaluate('LoadModule["pymathics.vectorizedplot"]')
395-
397+
396398
try:
397399
if args.files:
398400
for fn in args.files:

0 commit comments

Comments
 (0)