From 280c43422b4bf5c70cecb0ddd7f0a98b30f1f5aa Mon Sep 17 00:00:00 2001 From: cpburnz <2126043+cpburnz@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:01:51 -0400 Subject: [PATCH] Revert "Test fix for PyPy failure on Windows" This reverts commit e549c727f010e1c1df7051481897dce23a97e5a3. --- tests/test_util.py | 2 +- tests/util.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 033c745..5a036a0 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -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, [ diff --git a/tests/util.py b/tests/util.py index 29b95b6..301427b 100644 --- a/tests/util.py +++ b/tests/util.py @@ -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: