99
1010from mathics .core .util import print_expression_tree
1111
12- import sys
1312
1413def test__listplot ():
1514 """tests for module builtin.drawing.plot._ListPlot"""
@@ -211,8 +210,9 @@ def test_plot(str_expr, msgs, str_expected, fail_msg):
211210# In case of error trees are printed with an embedded >>> marker showing location of error
212211#
213212
213+
214214def print_expression_tree_with_marker (expr ):
215- print_expression_tree (expr , marker = lambda expr : getattr (expr , "_marker" , "" ))
215+ print_expression_tree (expr , marker = lambda expr : getattr (expr , "_marker" , "" ))
216216
217217
218218def check_structure (result , expected ):
@@ -247,7 +247,7 @@ def eval_and_check_structure(str_expr, str_expected):
247247 try :
248248 check_structure (result , expected )
249249 except AssertionError as oops :
250- print (f"\n ERROR: { oops } (error is marked with >>>)" )
250+ print (f"\n ERROR: { oops } (error is marked with >>> below )" )
251251 print ("=== result:" )
252252 print_expression_tree_with_marker (result )
253253 print ("=== expected:" )
@@ -271,7 +271,7 @@ def test_plot3d_default():
271271 Polygon[{{0.0,0.0,0.0}, {0.0,0.5,0.5}, {0.5,0.0,0.5}}],
272272 Polygon[{{}}]
273273 },
274- XAspectRatio -> 1,
274+ AspectRatio -> 1,
275275 Axes -> True,
276276 AxesStyle -> {},
277277 Background -> Automatic,
@@ -283,7 +283,8 @@ def test_plot3d_default():
283283 TicksStyle -> {}
284284 ]
285285 """ ,
286- )
286+ )
287+
287288
288289def test_plot3d_nondefault ():
289290 eval_and_check_structure (
@@ -324,4 +325,3 @@ def test_plot3d_nondefault():
324325 ]
325326 """ ,
326327 )
327-
0 commit comments