diff --git a/tests/run_tests.py b/tests/run_tests.py index f1b7e5a8..9cf15aa7 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -342,9 +342,13 @@ def _parse_skip_config(config): if skip_id: test_name, test_module = _split_test_id(test_id) reason = "not supported on this distribution in this version and arch: %s" % skipping[skip_id] - print("%s (%s)\n%s ... skipped '%s'" % (test_name, test_module, - test._testMethodDoc, reason), - file=sys.stderr) + if test._testMethodDoc: + print("%s (%s)\n%s ... skipped '%s'" % (test_name, test_module, + test._testMethodDoc, reason), + file=sys.stderr) + else: + print("%s (%s) ... skipped '%s'" % (test_name, test_module, reason), + file=sys.stderr) continue # finally add the test to the suite