Skip to content

Commit

Permalink
update test for upstream added gzip extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupp committed Jan 10, 2023
1 parent 3794a39 commit 4ffcd59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/python_magic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_extension(self):
self.assert_values(m, {
# some versions return '' for the extensions of a gz file,
# including w/ the command line. Who knows...
'test.gz': ('gz/tgz/tpz/zabw/svgz', '', '???'),
'test.gz': ('gz/tgz/tpz/zabw/svgz/adz/kmy/xcfgz', 'gz/tgz/tpz/zabw/svgz', '', '???'),
'name_use.jpg': 'jpeg/jpg/jpe/jfif',
})
except NotImplementedError:
Expand Down Expand Up @@ -227,6 +227,5 @@ def test_pathlike(self):
m = magic.Magic(mime=True)
self.assertEqual('application/pdf', m.from_file(path))


if __name__ == '__main__':
unittest.main()

0 comments on commit 4ffcd59

Please # to comment.