Skip to content

Commit

Permalink
Revert "Test fix for PyPy failure on Windows"
Browse files Browse the repository at this point in the history
This reverts commit e549c72.
  • Loading branch information
cpburnz committed Sep 8, 2023
1 parent e549c72 commit 280c434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_2_2_links(self):
('bx', 'b'),
('Dir/cx', 'Dir/c'),
('Dir/dx', 'Dir/d'),
('DirX', 'Dir', True),
('DirX', 'Dir'),
])
results = set(iter_tree_files(self.temp_dir))
self.assertEqual(results, set(map(ospath, [
Expand Down
5 changes: 2 additions & 3 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ def make_links(temp_dir: pathlib.Path, links: Iterable[Tuple[str, str]]) -> None
the destination link path (:class:`str`) and source node path
(:class:`str`).
"""
for link, node, *opt in links:
for link, node in links:
src = temp_dir / ospath(node)
dest = temp_dir / ospath(link)
is_dir = opt[0] if opt else False
os.symlink(src, dest, target_is_directory=is_dir)
os.symlink(src, dest)


def mkfile(file: pathlib.Path) -> None:
Expand Down

0 comments on commit 280c434

Please sign in to comment.