mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
tests/: update __future__ imports
TN: Q223-029
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from __future__ import (absolute_import, division, print_function,
|
||||
unicode_literals)
|
||||
|
||||
import libfoolang
|
||||
|
||||
|
||||
@@ -10,4 +13,4 @@ for node in unit.root.findall(lambda _: True):
|
||||
))
|
||||
assert not node.text or not node.is_ghost
|
||||
|
||||
print 'Done.'
|
||||
print('Done.')
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
Test the handling of analysis units in the properties DSL.
|
||||
"""
|
||||
|
||||
from __future__ import (absolute_import, division, print_function,
|
||||
unicode_literals)
|
||||
|
||||
import os.path
|
||||
|
||||
from langkit.compiled_types import ASTNode, Field, T, root_grammar_class
|
||||
@@ -44,4 +47,4 @@ foo_grammar.add_rules(
|
||||
),
|
||||
)
|
||||
build_and_run(foo_grammar, 'main.py')
|
||||
print 'Done'
|
||||
print('Done')
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
from __future__ import (absolute_import, division, print_function,
|
||||
unicode_literals)
|
||||
|
||||
import libfoolang
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@ Test the handling of negative indexes in the Python binding of AST nodes child
|
||||
getters.
|
||||
"""
|
||||
|
||||
from __future__ import (absolute_import, division, print_function,
|
||||
unicode_literals)
|
||||
|
||||
import os.path
|
||||
|
||||
from langkit.compiled_types import ASTNode, Field, T, root_grammar_class
|
||||
@@ -31,4 +34,4 @@ foo_grammar.add_rules(
|
||||
name=Name(Tok(Token.Identifier, keep=True)),
|
||||
)
|
||||
build_and_run(foo_grammar, 'main.py')
|
||||
print 'Done'
|
||||
print('Done')
|
||||
|
||||
Reference in New Issue
Block a user