If we assign our own test runner, passing arguments stops working
as unittest won't instantiate its own test runner after it parses
the arguments from sys.argv.
Consequence is that the tests will write to stderr now instead of
stdout since it doesn't seem possible to configure the stream that
unittest.main() will instantiate its test runner with so it'll
default to sys.stderr.
env.update({ 'UBSAN_OPTIONS' : ubsan_options })
sys.argv[1:] = unknown_args
- unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout,
- verbosity=3))
+ unittest.main(verbosity=3)