diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-20 10:36:07 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-20 10:36:07 +0200 |
commit | ace1877788a574362acda463d519d56a728620c5 (patch) | |
tree | 2f9538d4f862bbe876e97e0b4961131ce2cb998a /pylint/test | |
parent | 44248e9f67cd066111af139113670f5c315de890 (diff) | |
download | pylint-git-ace1877788a574362acda463d519d56a728620c5.tar.gz |
Use the right column number for syntax error on PyPy
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/test_self.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index 8fe3efe20..f90a89340 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -23,10 +23,9 @@ import configparser import contextlib import json -import os +import platform import re import subprocess -import sys import tempfile import textwrap from io import StringIO @@ -401,7 +400,7 @@ class TestRunTC(object): assert isinstance(output[0], dict) expected = { "obj": "", - "column": 15, + "column": 8 if platform.python_implementation() == "PyPy" else 15, "line": 1, "type": "error", "symbol": "syntax-error", |