From 3164a9e568537d87246f9d69bbc3b3d2c090bd18 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Mon, 23 May 2016 21:15:48 +0200 Subject: [PATCH] Make vim mock Python3 compatible --- plugin/test_pythonhelper.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/plugin/test_pythonhelper.py b/plugin/test_pythonhelper.py index a32c4c4..9f24255 100755 --- a/plugin/test_pythonhelper.py +++ b/plugin/test_pythonhelper.py @@ -7,16 +7,12 @@ import sys class Command(object): def __call__(self, args): - print args + print(args) + class Window(object): def __init__(self): - self.cursor = (5, 13) # class - # self.cursor = (8, 13) # class - # self.cursor = (12, 13) # inner function - # self.cursor = (22, 13) # method - # self.cursor = (30, 13) # function - # self.cursor = (36, 13) # function + self.cursor = (1, 1) class Current(object): @@ -33,6 +29,7 @@ class MockVim(object): sys.modules['vim'] = vim = MockVim + import pythonhelper