mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Merge pull request #710 from vladimir-v-diaz/catch_exception_raised_in_windows
Allow 'OSError.ENOENT' exception in test condition (expected in Windows)
This commit is contained in:
commit
08c8bf67ae
1 changed files with 1 additions and 1 deletions
|
|
@ -1216,7 +1216,7 @@ def test_6_download_target(self):
|
|||
self.repository_updater.download_target(targetinfo, bad_destination_directory)
|
||||
|
||||
except OSError as e:
|
||||
self.assertTrue(e.errno == errno.ENAMETOOLONG)
|
||||
self.assertTrue(e.errno == errno.ENAMETOOLONG or e.errno == errno.ENOENT)
|
||||
|
||||
# Test: Invalid arguments.
|
||||
self.assertRaises(securesystemslib.exceptions.FormatError,
|
||||
|
|
|
|||
Loading…
Reference in a new issue