Skip to content

Commit 93eea10

Browse files
committed
Slightly increase coverage
1 parent 88fed2a commit 93eea10

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/isal/igzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,5 @@ def main():
313313
out_file.close()
314314

315315

316-
if __name__ == "__main__":
316+
if __name__ == "__main__": # pragma: nocov
317317
main()

tests/test_gzip_compliance.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,15 +808,13 @@ def test_decompress_infile_outfile(self):
808808

809809
with igzip.open(igzipname, mode='wb') as fp:
810810
fp.write(self.data)
811-
rc, out, err = assert_python_ok('-m', 'isal.igzip', '-d', igzipname)
811+
sys.argv = [ '', '-d', igzipname]
812+
igzip.main()
812813

813814
with open(os.path.join(TEMPDIR, "testigzip"), "rb") as gunziped:
814815
self.assertEqual(gunziped.read(), self.data)
815816

816817
self.assertTrue(os.path.exists(igzipname))
817-
self.assertEqual(rc, 0)
818-
self.assertEqual(out, b'')
819-
self.assertEqual(err, b'')
820818

821819
def test_decompress_infile_outfile_error(self):
822820
rc, out, err = assert_python_ok('-m', 'isal.igzip', '-d',

0 commit comments

Comments
 (0)