Skip to content

Commit

Permalink
Modify examples.py to deal with colored API change
Browse files Browse the repository at this point in the history
  • Loading branch information
softmattertheory committed Jun 19, 2023
1 parent edf4aed commit c7976df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def run(file,testLog,CI):

if (iserror(line)):
if not CI:
print(stylize("Failed",colored.fg("red")))
print("Failed") #stylize("Failed",colored.fg("red"))) // Temporarily disable this 6/19/23 due to colored module API change
else:
print("::error file = {",file,"}::{",file," Failed}")

Expand All @@ -101,7 +101,7 @@ def run(file,testLog,CI):
if (ret ==1):
if not CI:
print(file+":", end=" ")
print(stylize("Passed",colored.fg("green")))
print("Passed") #stylize("Passed",colored.fg("green")))
# Delete the temporary file
os.system('rm ' + tmp)
return ret
Expand Down

0 comments on commit c7976df

Please sign in to comment.