Remove extraneous space
This commit is contained in:
parent
5b718446b6
commit
561e5d17b9
@ -93,7 +93,7 @@ class ConfigErrorDesc:
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.traceback:
|
if self.traceback:
|
||||||
return '{} - {}: {} '.format(self.text,
|
return '{} - {}: {}'.format(self.text,
|
||||||
self.exception.__class__.__name__,
|
self.exception.__class__.__name__,
|
||||||
self.exception)
|
self.exception)
|
||||||
return '{}: {}'.format(self.text, self.exception)
|
return '{}: {}'.format(self.text, self.exception)
|
||||||
|
@ -318,7 +318,7 @@ class TestSource:
|
|||||||
|
|
||||||
expected = ("Errors occurred while reading config.py:\n"
|
expected = ("Errors occurred while reading config.py:\n"
|
||||||
" Unhandled exception - ZeroDivisionError:"
|
" Unhandled exception - ZeroDivisionError:"
|
||||||
" division by zero ")
|
" division by zero")
|
||||||
assert str(excinfo.value) == expected
|
assert str(excinfo.value) == expected
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ def test_config_file_errors_str(errors):
|
|||||||
assert str(errors).splitlines() == [
|
assert str(errors).splitlines() == [
|
||||||
'Errors occurred while reading config.py:',
|
'Errors occurred while reading config.py:',
|
||||||
' Error text 1: Exception 1',
|
' Error text 1: Exception 1',
|
||||||
' Error text 2 - Exception: Exception 2 ',
|
' Error text 2 - Exception: Exception 2',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user