summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/run.sh1
-rwxr-xr-xtest/test.py2
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__':