Skip to content

Commit a8fe306

Browse files
author
Diego Argueta
committed
Fix call to OSError constructor on Windows test
1 parent b9b8444 commit a8fe306

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88

99
## Unreleased
1010

11-
### Added
12-
1311
### Changed
1412

1513
- Support more lenient usernames and group names in FTP servers

tests/test_error_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def test_convert_enametoolong(self):
2727

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

0 commit comments

Comments
 (0)