Remove extraneous space

This commit is contained in:
George Edward Bulmer 2018-02-12 14:22:25 +00:00
parent 5b718446b6
commit 561e5d17b9
3 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class ConfigErrorDesc:
def __str__(self):
if self.traceback:
return '{} - {}: {} '.format(self.text,
return '{} - {}: {}'.format(self.text,
self.exception.__class__.__name__,
self.exception)
return '{}: {}'.format(self.text, self.exception)

View File

@ -318,7 +318,7 @@ class TestSource:
expected = ("Errors occurred while reading config.py:\n"
" Unhandled exception - ZeroDivisionError:"
" division by zero ")
" division by zero")
assert str(excinfo.value) == expected

View File

@ -74,7 +74,7 @@ def test_config_file_errors_str(errors):
assert str(errors).splitlines() == [
'Errors occurred while reading config.py:',
' Error text 1: Exception 1',
' Error text 2 - Exception: Exception 2 ',
' Error text 2 - Exception: Exception 2',
]