def run_tests(*test_args):
    if not test_args:
        test_args = ['tests']

    test_runner = NoseTestSuiteRunner(verbosity=1)
    num_failures = test_runner.run_tests(test_args)
    if num_failures > 0:
        sys.exit(num_failures)
dataset/ETHPy150Open codeinthehole/django-cacheback/runtests.py/run_tests/original