From dc3d6a3975f3259d8a61361f081c821ae7211a6a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 27 Dec 2019 14:13:35 +0100 Subject: [PATCH] Fix python 2 tests --- test/completion/basic.py | 2 ++ test/completion/pytest.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/completion/basic.py b/test/completion/basic.py index 2cd85bcd..28089deb 100644 --- a/test/completion/basic.py +++ b/test/completion/basic.py @@ -329,6 +329,8 @@ def foo(my_t=some_defa #? ['some_default'] def foo(my_t=some_defa, my_t2=some_defa +# python > 2.7 + #? ['my_type'] def foo(my_t: lala=some_defa, my_t2: my_typ #? ['my_type'] diff --git a/test/completion/pytest.py b/test/completion/pytest.py index eed0217e..bb48387e 100644 --- a/test/completion/pytest.py +++ b/test/completion/pytest.py @@ -1,4 +1,4 @@ -# python > 2 +# python > 2.7 import pytest from pytest import fixture