Skip to content

Commit

Permalink
Fix #9169: test_main_with_args in tools/lint has wrong expectation
Browse files Browse the repository at this point in the history
This got broken by 19c7918
  • Loading branch information
gsnedders committed Jan 23, 2018
1 parent a06b5de commit ad66d3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/lint/tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ def test_main_with_args():
sys.argv = ['./lint', 'a', 'b', 'c']
with _mock_lint('lint', return_value=True) as m:
lint_mod.main(**vars(create_parser().parse_args()))
m.assert_called_once_with(repo_root, ['a', 'b', 'c'], "normal")
m.assert_called_once_with(repo_root,
[os.path.relpath(os.path.join(os.getcwd(), x), repo_root)
for x in ['a', 'b', 'c']],
"normal")
finally:
sys.argv = orig_argv

Expand Down

0 comments on commit ad66d3c

Please sign in to comment.