Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
eumiro committed Jan 13, 2021
1 parent 254b469 commit b6b1a0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_10_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_10_guess_basename(self):
self.assertEqual(
"xxx", BaseNameTest._guess("xxx", "xxx.ext1", fileobj)
)
except ValueError as e:
except ValueError:
pass
else:
self.fail("guessing should has failed")
Expand Down
8 changes: 4 additions & 4 deletions tests/test_30_decompressors.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def _check_decompressor(

# test source archive
archive.seek(0)
archive_content = archive.read()
archive.read()
archive.source.seek(0)
source_content = archive.source.read()
archive.source.read()
self.assertEqual(
archive.read(),
archive.source.read(),
Expand Down Expand Up @@ -163,7 +163,7 @@ def _check_decompressor(
finally:
shutil.rmtree(tempdir)
# force closing archive by deleting the instance
archive = None
del archive
self.assertFalse(compressed_fileobj.closed)
self.assertFalse(decompressed_fileobj.closed)

Expand Down Expand Up @@ -439,6 +439,6 @@ def test_50_object_closed_on_delete(self):
archive2 = destream.open(fh.name)
proc2 = archive2.p
thread2 = archive2.t
archive2 = None
del archive2
self.assertIsNotNone(proc2.poll())
self.assertFalse(thread2.is_alive())

0 comments on commit b6b1a0e

Please sign in to comment.