mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove compression code from exceptions and update unit tests
This commit is contained in:
parent
1afd968725
commit
3bfa9f68ed
2 changed files with 0 additions and 18 deletions
|
|
@ -51,12 +51,6 @@ def test_bad_hash_error(self):
|
|||
logger.error(bad_hash_error)
|
||||
|
||||
|
||||
def test_decompression_error(self):
|
||||
download_exception = tuf.exceptions.DownloadError()
|
||||
decompression_error = tuf.exceptions.DecompressionError(download_exception)
|
||||
logger.error(decompression_error)
|
||||
|
||||
|
||||
# Run the unit tests.
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -149,18 +149,6 @@ class UnsupportedLibraryError(Error):
|
|||
pass
|
||||
|
||||
|
||||
class DecompressionError(Error):
|
||||
"""Indicate that some error happened while decompressing a file."""
|
||||
|
||||
def __init__(self, exception):
|
||||
# Store the original exception.
|
||||
self.exception = exception
|
||||
|
||||
def __str__(self):
|
||||
# Show the original exception.
|
||||
return repr(self.exception)
|
||||
|
||||
|
||||
class DownloadError(Error):
|
||||
"""Indicate an error occurred while attempting to download a file."""
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue