Skip to content

Commit cae52ee

Browse files
committed
adding test
1 parent 8340363 commit cae52ee

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

mathics/builtin/compilation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def __hash__(self):
149149
return hash(("CompiledCode", ctypes.addressof(self.cfunc))) # XXX hack
150150

151151
def atom_to_boxes(self, f, evaluation):
152-
return CompiledCodeBox(String("Nocode"))
152+
return CompiledCodeBox(String("Nocode"), evaluation=evaluation)
153153

154154

155155
class CompiledCodeBox(BoxConstruct):

mathics/builtin/graphics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ class Graphics(Builtin):
470470
def apply_makeboxes(self, content, evaluation, options):
471471
"""MakeBoxes[%(name)s[content_, OptionsPattern[%(name)s]],
472472
StandardForm|TraditionalForm|OutputForm]"""
473+
473474
def convert(content):
474475
head = content.get_head_name()
475476

@@ -2771,6 +2772,7 @@ class _GraphicsElements(object):
27712772
def __init__(self, content, evaluation):
27722773
self.evaluation = evaluation
27732774
self.elements = []
2775+
27742776
builtins = evaluation.definitions.builtin
27752777

27762778
def get_options(name):

mathics/builtin/inout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ def apply_general(self, expr, f, evaluation):
497497
else:
498498
head = expr.head
499499
leaves = expr.leaves
500+
500501
f_name = f.get_name()
501502
if f_name == 'System`TraditionalForm':
502503
left, right = '(', ')'

mathics/session.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def format_result(self, str_expression=None, timeout=None, form=None):
2525
res = self.last_result
2626
if form is None:
2727
form = self.form
28-
if str_expression:
29-
self.last_result = self.evaluate(str_expression, timeout)
3028
return self.last_result.do_format(self.evaluation, form)
3129

3230

0 commit comments

Comments
 (0)