Skip to content

Commit

Permalink
Fix test for path finder
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Coêlho <[email protected]>
  • Loading branch information
chocoelho committed Oct 5, 2018
1 parent d7a8aa5 commit 1f004c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/finder/test_file_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def _run_test(self, name, expected):
files = find_python([], [root], explicit_file_mode=False)

expected = [os.path.relpath(os.path.join(root, e).rstrip(os.path.sep)) for e in expected]
expected.append(files.rootpath)
actual = files.get_minimal_syspath()

expected.sort(key=lambda x: len(x))
Expand Down Expand Up @@ -43,7 +44,7 @@ def test_long_path_not_a_venv(self):
Windows doesn't allow extremely long paths. This unit test has to be
run in Windows to be meaningful, though it shouldn't fail in other
operating systems.
"""
j """
path = [os.path.dirname(__file__), 'testdata', 'venvs']
path.extend(['long_path_not_a_venv'] * 14)
path.append('long_path_not_a_venv_long_path_not_a_v')
Expand Down

0 comments on commit 1f004c9

Please sign in to comment.