From 10b8936b11ee6f35fff719d1a54ad9b06495af11 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 3 Jul 2016 02:57:43 +0200 Subject: [PATCH] More python2.7 fixes. --- test/test_api/test_interpreter.py | 6 +++--- test/test_parser/test_fast_parser.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py index 1997b5ad..7c82ea58 100644 --- a/test/test_api/test_interpreter.py +++ b/test/test_api/test_interpreter.py @@ -41,12 +41,12 @@ def test_builtin_details(): def test_nested_resolve(): - class X(): + class XX(): def x(): pass - cls = get_completion('X', locals()) - func = get_completion('X.x', locals()) + cls = get_completion('XX', locals()) + func = get_completion('XX.x', locals()) assert func.start_pos == (cls.start_pos[0] + 1, 12) diff --git a/test/test_parser/test_fast_parser.py b/test/test_parser/test_fast_parser.py index b7758e29..c8ab24e8 100644 --- a/test/test_parser/test_fast_parser.py +++ b/test/test_parser/test_fast_parser.py @@ -478,5 +478,5 @@ def test_round_trip(): """hahaha""" func''') - f = FastParser(load_grammar(), source) + f = FastParser(load_grammar(), u(source)) assert f.get_parsed_node().get_code() == source