From ace1877788a574362acda463d519d56a728620c5 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Mon, 20 May 2019 10:36:07 +0200 Subject: Use the right column number for syntax error on PyPy --- pylint/test/test_self.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pylint/test') 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", -- cgit v1.2.1