Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Test failure on Linux because of different magic output #40

Open
mgax opened this issue Jun 11, 2017 · 0 comments
Open

Test failure on Linux because of different magic output #40

mgax opened this issue Jun 11, 2017 · 0 comments
Labels

Comments

@mgax
Copy link
Member

mgax commented Jun 11, 2017

The test test_digest_magic_file_types in testsuite/test_digest.py fails for the file no-extension/file_msg:

>       assert data['type'] == expected_type
E       AssertionError: assert None == 'email'

The test does work on Mac Os Sierra. The difference seems to be in the return value of calls to magic in snoop/content_types.py - libmagic_guess_content_type. On Mac, magic.from_buffer(buffer, mime=True) returns 'application/vnd.ms-outlook', but on Linux it returns 'application/CDFV2-encrypted'.

Edit: the Linux failure was observed while running the test suite with Docker. All other tests pass.

@gabriel-v gabriel-v added the bug label Sep 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants