Skip to content

Commit

Permalink
Merge pull request #26 from juanjux/fix/full_path
Browse files Browse the repository at this point in the history
Use full path for other pythons
  • Loading branch information
juanjux authored Apr 6, 2018
2 parents 839cfd1 + 37b885b commit 526ae68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pydetector/ast_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def check_ast(code, try_other_on_sucess=False, verbosity=0,
py2_exec='python2', py3_exec='python3'):
py2_exec='/usr/bin/python2', py3_exec='/usr/bin/python3'):
"""
Try with the ast.parse of both Python 2 and 3 and then
iterate over the retrieved AST to find specific syntax elements.
Expand Down
2 changes: 1 addition & 1 deletion pydetector/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.14.2"
__version__ = "0.14.3"
4 changes: 2 additions & 2 deletions tests/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def test_positions_fstring(self):
self.assertEqual(ast["body"][1]["value"]["values"][1]["lineno"], 2)

# func() insde the braces
self.assertEqual(ast["body"][1]["value"]["values"][1]["value"]["col_offset"], 1)
self.assertEqual(ast["body"][1]["value"]["values"][1]["value"]["lineno"], 1)
self.assertEqual(ast["body"][1]["value"]["values"][1]["value"]["col_offset"], 22)
self.assertEqual(ast["body"][1]["value"]["values"][1]["value"]["lineno"], 2)

# " string end"
self.assertEqual(ast["body"][1]["value"]["values"][2]["col_offset"], 6)
Expand Down

0 comments on commit 526ae68

Please sign in to comment.