diff options
author | Adam Hupp <adam@hupp.org> | 2019-12-11 22:35:46 -0800 |
---|---|---|
committer | Adam Hupp <adam@hupp.org> | 2019-12-11 22:35:46 -0800 |
commit | 5aaf07c23af59abce40dced60875301ad9557b2c (patch) | |
tree | 945612807c6e9a746036483a2bf6bb55406775bb | |
parent | 358dbd8cffcf7cc7642c53175ac45f1ce3865f12 (diff) | |
download | python-magic-5aaf07c23af59abce40dced60875301ad9557b2c.tar.gz |
actually fix CI
-rwxr-xr-x | test/run.sh | 1 | ||||
-rwxr-xr-x | test/test.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/test/run.sh b/test/run.sh index ebd7976..106a1e4 100755 --- a/test/run.sh +++ b/test/run.sh @@ -1,6 +1,5 @@ #!/bin/sh -set -e; # ensure we can use unicode filenames in the test export LC_ALL=en_US.UTF-8 diff --git a/test/test.py b/test/test.py index 3d835c1..62e8a03 100755 --- a/test/test.py +++ b/test/test.py @@ -150,7 +150,7 @@ class MagicTest(unittest.TestCase): def test_name_count(self): m = magic.Magic() - with open('testdata/python-3.7.2-python-magic-0.4.15.jpg', 'rb') as f: + with open(os.path.join(self.TESTDATA_DIR, 'name_use.jpg'), 'rb') as f: m.from_buffer(f.read()) if __name__ == '__main__': |