Skip to content

Commit

Permalink
BUG: fix broken tests (missing newlines)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Sep 13, 2021
1 parent 486760a commit 20ad994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/features/versioned_branches_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,12 +556,12 @@ def test_fix_py3x_only_code(s, expected):
's',
(
# we timidly skip `if` without `else` as it could cause a SyntaxError
'import sys'
'import sys\n'
'if sys.version_info >= (3, 6):\n'
' pass',
# here's the case where it causes a SyntaxError
'import sys'
'if True'
'import sys\n'
'if True\n'
' if sys.version_info >= (3, 6):\n'
' pass\n',
# both branches are still relevant in the following cases
Expand Down

0 comments on commit 20ad994

Please sign in to comment.