Remove compression code from exceptions and update unit tests

This commit is contained in:
Vladimir Diaz 2017-08-25 13:27:03 -04:00
parent 1afd968725
commit 3bfa9f68ed
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A
2 changed files with 0 additions and 18 deletions

View file

@ -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()

View file

@ -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