Don't use unittest.suite and unittest.test (#16464)

This commit is contained in:
flywind 2020-12-27 03:15:57 -06:00 • committed by GitHub
commit b57df6d0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ which only gets executed when the tester is building the file.
Each test should be in a separate ``block:`` statement, such that Each test should be in a separate ``block:`` statement, such that
each has its own scope. Use boolean conditions and ``doAssert`` for the each has its own scope. Use boolean conditions and ``doAssert`` for the
testing by itself, don't rely on echo statements or similar; in particular, avoid testing by itself, don't rely on echo statements or similar; in particular, avoid
things like `echo "done"`. things like `echo "done"`. Don't use `unittest.suite` and `unittest.test`.
Sample test: Sample test: