Skip to content

Commit

Permalink
Fix call to OSError constructor on Windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Argueta committed Dec 16, 2021
1 parent b9b8444 commit a8fe306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Added

### Changed

- Support more lenient usernames and group names in FTP servers
Expand Down
3 changes: 2 additions & 1 deletion tests/test_error_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def test_convert_enametoolong(self):

@unittest.skipIf(sys.platform != "win32", "requires Windows")
def test_convert_resourcelocked_windows(self):
exception = OSError(32, "resource locked")
# errno should be ignored on Windows so we pass in a bogus number.
exception = OSError(123456, "resource locked", None, 32)
with self.assertRaises(fs.errors.ResourceLocked) as ctx:
with convert_os_errors("stat", "/tmp/test"):
raise exception
Expand Down

0 comments on commit a8fe306

Please sign in to comment.