diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-07-10 09:56:20 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-07-10 09:56:20 +0200 |
commit | 6664540e33a790d162d485ca21d5a27ee4c4f606 (patch) | |
tree | 9c08103216437edab0857f6ef2340dfc2cf8a913 /tests/test_self.py | |
parent | 3e440d100ca49741d5a5b51325caf912120dd35e (diff) | |
download | pylint-git-6664540e33a790d162d485ca21d5a27ee4c4f606.tar.gz |
Adjust the column numbers for syntax errors
Diffstat (limited to 'tests/test_self.py')
-rw-r--r-- | tests/test_self.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_self.py b/tests/test_self.py index 456c4172f..bcde2e5b1 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -405,9 +405,16 @@ class TestRunTC(object): assert isinstance(output, list) assert len(output) == 1 assert isinstance(output[0], dict) + # So each version wants a different column number... + if platform.python_implementation() == "PyPy": + column = 8 + elif sys.version_info >= (3, 8): + column = 9 + else: + column = 15 expected = { "obj": "", - "column": 8 if platform.python_implementation() == "PyPy" else 15, + "column": column, "line": 1, "type": "error", "symbol": "syntax-error", |