Skip to content

Commit

Permalink
Add clarifying note to test_print_statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger authored and stephenmcgruer committed Mar 24, 2020
1 parent 135120a commit a1e3c1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/lint/tests/test_file_lints.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ def test_late_timeout():
]


# Note: This test checks the print *statement* (which doesn't exist in python 3).
# The print *function* is checked in test_print_function below.
@pytest.mark.skipif(six.PY3, reason="Cannot parse print statements from python 3")
def test_print_statement():
error_map = check_with_files(b"def foo():\n print 'statement'\n print\n")
Expand Down

0 comments on commit a1e3c1e

Please sign in to comment.