From 3bfa9f68edea2c4b86e29378d3ffccb56d7d13e9 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Fri, 25 Aug 2017 13:27:03 -0400 Subject: [PATCH] Remove compression code from exceptions and update unit tests --- tests/test_exceptions.py | 6 ------ tuf/exceptions.py | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index b29b72b8..232071af 100755 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -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() diff --git a/tuf/exceptions.py b/tuf/exceptions.py index a964d3b8..80e2bb05 100755 --- a/tuf/exceptions.py +++ b/tuf/exceptions.py @@ -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