This is an archive of the discontinued LLVM Phabricator instance.

TestFileHandle.py: fix for Python 3.6
ClosedPublic

Authored by lawrence_danna on Oct 9 2019, 4:47 PM.

Details

Summary

Python 3.6 stringifies exceptions as ExceptionClass("foo",) instead
of ExceptionClass("foo"). This patch makes the test assertions a
little more flexible so the test passes anyway.

Diff Detail

Event Timeline

lawrence_danna created this revision.Oct 9 2019, 4:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 4:47 PM
labath accepted this revision.Oct 10 2019, 12:52 AM
This revision is now accepted and ready to land.Oct 10 2019, 12:52 AM
This revision was automatically updated to reflect the committed changes.