Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix windows tests
  • Loading branch information
barneygale committed Aug 18, 2024
commit a15f248465b90a5992a37067c53d91a6b13daac6
4 changes: 2 additions & 2 deletions Lib/test/test_pathlib/test_pathlib_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ def test_copy_symlink_to_existing_symlink(self):
target = base / 'copyTarget'
source.symlink_to(base / 'fileA')
target.symlink_to(base / 'dirC')
with self.assertRaises(IsADirectoryError):
with self.assertRaises(OSError):
source.copy(target)
with self.assertRaises(FileExistsError):
source.copy(target, follow_symlinks=False)
Expand All @@ -1784,7 +1784,7 @@ def test_copy_symlink_to_existing_directory_symlink(self):
target = base / 'copyTarget'
source.symlink_to(base / 'fileA')
target.symlink_to(base / 'dirC')
with self.assertRaises(IsADirectoryError):
with self.assertRaises(OSError):
source.copy(target)
with self.assertRaises(FileExistsError):
source.copy(target, follow_symlinks=False)
Expand Down
Loading