Skip to content

Commit 9119d61

Browse files
committed
clean up
1 parent 6dcfed4 commit 9119d61

3 files changed

Lines changed: 0 additions & 18 deletions

File tree

mathics/builtin/system.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,6 @@ class UserName(Predefined):
406406

407407
name = "$UserName"
408408

409-
messages = {
410-
'nologin': "UserName not available in this system.",
411-
}
412-
413409
def evaluate(self, evaluation) -> String:
414410
try:
415411
user = os.getlogin()

mathics/core/evaluation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ def evaluate():
337337
self.definitions.add_rule(
338338
"Out", Rule(Expression("Out", line_no), stored_result)
339339
)
340-
341340
if self.last_eval != self.SymbolNull:
342341
if check_io_hook("System`$PrePrint"):
343342
self.last_eval = Expression(

mathics/test.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,8 @@ def fail(why):
9090
info = sys.exc_info()
9191
sys.excepthook(*info)
9292
return False
93-
if False:
94-
print("out=-----------------")
95-
for rr in out:
96-
for line in rr.text.splitlines():
97-
print(" <",line,">")
98-
print("wanted_out=-------------------")
99-
for rr in wanted_out:
100-
for line in rr.text.splitlines():
101-
print(" <",line,">")
102-
print("---------------------------------")
10393

10494
if not compare(result, wanted):
105-
print("result =!=wanted")
10695
fail_msg = "Result: %s\nWanted: %s" % (result, wanted)
10796
if out:
10897
fail_msg += "\nAdditional output:\n"
@@ -113,8 +102,6 @@ def fail(why):
113102
output_ok = False
114103
else:
115104
for got, wanted in zip(out, wanted_out):
116-
if False:
117-
print("got=<",got,"> wanted=<",wanted,">")
118105
if not got == wanted:
119106
output_ok = False
120107
break

0 commit comments

Comments
 (0)