Ticket #23778 -- Add a code snippet in the advanced testing documentatio...

...n showing how to run tests outside de test runner.
Is the conditional actually needed? I think `sys.exit(bool(failures))` will do the right thing in any case.