From ab36a955249416caba9a500d38f7c233d5064dfe Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sat, 26 Sep 2026 19:39:51 +0200 Subject: [PATCH] Fix reported line:column in unit_testing_syntax_compatibility Fixes #297 --- unittesting/syntax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittesting/syntax.py b/unittesting/syntax.py index d15a0f9d..a6a98dba 100644 --- a/unittesting/syntax.py +++ b/unittesting/syntax.py @@ -86,7 +86,7 @@ def run(self, package=None, **kwargs): for location, _, message in results: stream.write( "%s:%d:%d: %s\n" - % (syntax, location[0] + 1, location[0] + location[1], message) + % (syntax, location[0] + 1, location[1] + 1, message) ) if results: total_errors += len(results)