Skip to content

Commit d5f723f

Browse files
committed
Utilize the new Symlink in preparing the test case.
1 parent c701bcd commit d5f723f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from . import fixtures
1111
from ._context import suppress
12+
from ._path import Symlink
1213
from importlib_metadata import (
1314
Distribution,
1415
EntryPoint,
@@ -419,14 +420,10 @@ def main():
419420
print("hello world")
420421
""",
421422
},
422-
# "symlinked" -> ".symlink.target", see below
423+
"symlinked": Symlink(".symlink.target"),
423424
}
424425

425426
fixtures.build_files(files, self.site_dir)
426-
target = self.site_dir / ".symlink.target"
427-
assert target.is_dir()
428-
(self.site_dir / "symlinked").symlink_to(target, target_is_directory=True)
429-
430427
assert packages_distributions()['symlinked'] == ['symlinked-pkg']
431428

432429

0 commit comments

Comments
 (0)