[PATCH] D39763: [clang] [python] [tests] Rewrite to use standard unittest module
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 7 14:59:36 PST 2017
mgorny created this revision.
Rewrite the tests from using plain 'assert' mixed with some nosetests
methods to the standard unittest module layout. Improve the code
to use the most canonical assertion methods whenever possible.
This has a few major advantages:
- the code uses standard methods now, resulting in a reduced number
of WTFs whenever someone with basic Python knowledge gets to read it,
- completely unnecessary dependency on nosetests is removed since
the standard library supplies all that is necessary for the tests
- the tests can be run via any test runner, including the one built-in
- the failure output for most of the tests is improved from 'assertion
x == y failed' to actually telling the values.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 134990 bytes
Desc: not available
More information about the cfe-commits