Fix some compatibilty issues in the test suite for Python 2.7.

This commit is contained in:
Dave Halter
2015-02-09 14:15:25 +01:00
parent 28d3ba6c04
commit 07156b427c
2 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ def test_end_newlines():
line the parser needs.
"""
def test(source, end_pos):
module = Parser(load_grammar(), source).module
module = Parser(load_grammar(), u(source)).module
assert module.get_code() == source
assert module.end_pos == end_pos