Skip to content

Commit

Permalink
Silence UnicodeEncodeErrors during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Aug 14, 2023
1 parent 0e29a95 commit c4ce711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bikeshed/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ def run(
fails.append(testName)
except Exception as e:
print(f"Python threw an error when running '{testName}':\n{e}") # noqa: T201
raise e
if isinstance(e, UnicodeEncodeError):
pass
else:
raise e
if numPassed == total:
m.p(m.printColor("✔ All tests passed.", color="green"))
return True
Expand Down

0 comments on commit c4ce711

Please sign in to comment.