mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
tests: Improve the error message for bad format chars
Print the faulty character for easier finding it. I did not find out how to split the format string into two lines such that self.fail would properly print the whole thing in its exception, so we have a long line here. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3df816fcb8
commit
8f115c616d
@ -241,7 +241,7 @@ class CharacterTests(TestCase):
|
||||
dirs = set()
|
||||
for c in set(s):
|
||||
if is_bad_char(c):
|
||||
self.fail(f"{name} has potentially bad format characters!")
|
||||
self.fail(f"{name} has potentially bad format character {ord(c[0])}!")
|
||||
dirs.add(u.bidirectional(c))
|
||||
|
||||
if 'L' in dirs and 'R' in dirs:
|
||||
|
Loading…
Reference in New Issue
Block a user