Changed skip messages from test suites to use print() instead of sys.stderr.write(), to match other output from the test runner.

- Legacy-Id: 18087
This commit is contained in:
Henrik Levkowetz 2020-06-27 17:32:02 +00:00
parent fcfc71684c
commit cb9006eb26
5 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ else:
skip_dot_to_pdf = True
skip_message = ("Skipping dependency graph tests: One or more of the binaries for dot\n "
"and unflatten weren't found in the locations indicated in settings.py")
sys.stderr.write(" "+skip_message+'\n')
print(" "+skip_message)
class StreamTests(TestCase):
def test_streams(self):

View file

@ -54,7 +54,7 @@ else:
skip_htpasswd_command = True
skip_message = ("Skipping htpasswd test: The binary for htpasswd wasn't found in the\n "
"location indicated in settings.py.")
sys.stderr.write(" "+skip_message+'\n')
print(" "+skip_message)
class IetfAuthTests(TestCase):
def setUp(self):

View file

@ -41,7 +41,7 @@ if code != 0:
skip_selenium = True
skip_message = "Skipping selenium tests: '{}' executable not found.".format(executable_name)
if skip_selenium:
sys.stderr.write(" "+skip_message+'\n')
print(" "+skip_message)
def start_web_driver():
options = webdriver.ChromeOptions()

View file

@ -60,7 +60,7 @@ else:
skip_pdf_tests = True
skip_message = ("Skipping pdf test: The binary for ghostscript wasn't found in the\n "
"location indicated in settings.py.")
sys.stderr.write(" "+skip_message+'\n')
print(" "+skip_message)
class MeetingTests(TestCase):
def setUp(self):

View file

@ -51,7 +51,7 @@ try:
except ImportError as e:
skip_wiki_glue_testing = True
skip_message = "Skipping trac tests: %s" % e
sys.stderr.write(" "+skip_message+'\n')
print(" "+skip_message)
class SendingMail(TestCase):