Skip to content

Commit

Permalink
update prior test after #1977
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunjay Cauligi committed Mar 15, 2021
1 parent 974c259 commit f4545f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/compilers/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ def test_eval_generator_with_return():

def test_futures_imports():
"""Make sure __future__ imports go first, especially when builtins are
automatically added (e.g. via use of a builtin name like `name`)."""
automatically added (e.g. via use of a builtin name like `last`)."""
hy_ast = can_compile((
'(import [__future__ [print_function]])\n'
'(import sys)\n'
'(setv name [1 2])'
'(print (first name))'))
'(setv last [1 2])'
'(print (first last))'))

assert hy_ast.body[0].module == '__future__'

Expand Down

0 comments on commit f4545f0

Please sign in to comment.