summaryrefslogtreecommitdiff
path: root/test/test.py
Commit message (Collapse)AuthorAgeFilesLines
* Use INDIR_MAX rather than BYTES_MAX in tests since the latter wasn'tfix-ciAdam Hupp2018-09-011-6/+2
| | | | | supported until recently. Also, return .value from the ctypes wrapper so callers aren't required to.
* getparam/setparam support #163Christoph Biedl2018-08-161-0/+8
|
* Apply change from Corin-EU to allow tests to be run from any directoryAdam Hupp2018-08-161-3/+5
|
* Merge pull request #177 from sbraz/bufferAdam Hupp2018-08-151-11/+14
|\ | | | | Tests: allow differences when reading a buffer or a file, fixes #173
| * Tests: allow differences when reading a buffer or a file, fixes #173Louis Sautier2018-08-141-11/+14
| | | | | | | | | | Also remove the loop in order to avoid analyzing files or buffers for each expected value, replace it with a call to assertIn().
* | Allow x-gzip as MIME type for gzip files, fixes #96Louis Sautier2018-08-131-1/+1
|/
* Bring "from_file()" under testGuido A.J. Stevens2018-01-251-0/+6
|
* PEP8Guido A.J. Stevens2018-01-251-11/+18
|
* fix test for xenial since travis started enabling itAdam Hupp2017-12-091-5/+5
|
* Merge pull request #149 from hugovk/fix-ciAdam Hupp2017-11-201-1/+1
|\ | | | | Fix the CI
| * Revert "update filetype reported by libmagic >=5.23 for keep_going=true"Hugo2017-10-141-1/+1
| | | | | | | | This reverts commit 9d127ceaab1da0632128422ffd6a2d340bd3e778.
* | python3 str handlingAdam Hupp2017-11-201-0/+7
|/ | | | | | | In python3 ctypes, a str is passed to ctypes as wchar*. This means the layout of the string magic looks like [ascii, null, ascii, null, etc]. For some reason, magic handles this just fine most of the time, but it's clearly wrong and I'm amazed it worked at all.
* update filetype reported by libmagic >=5.23 for keep_going=trueAdam Hupp2017-10-011-1/+1
|
* rename magic.pyc to avoid cleaning during build stepAdam Hupp2017-09-141-2/+2
|
* Return str rather than bytes for the description strings on python3.Adam Hupp2016-06-051-6/+3
| | | | | Assumes utf-8 encoding from magic return values, which I hope is always the case.
* propagate exception in other branch of 509 hackAdam Hupp2016-06-051-0/+11
|
* hopefully fix tests on whatever travisci usesAdam Hupp2016-03-211-9/+18
|
* rename the unicode lambda file to "lambda" and rename it at runtime when ↵Adam Hupp2016-03-201-10/+15
| | | | | | running the test. distutils can't handle unicode filenames at install time.
* Fix travis configRaphaël Vinot2015-11-061-0/+0
| | | | The tests fail on travis ci because the libmagic 5.09 is buggy.
* force GMT so test runs consistentlytz-testfixAdam Hupp2015-11-061-2/+6
|
* update test output for libmagic in debian jessieAdam Hupp2015-10-191-4/+4
|
* Include tests in the sdist tarballAdam Hupp2015-07-291-0/+78