summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2020-05-05 14:41:38 -0700
committerAdam Hupp <adam@hupp.org>2020-05-05 14:44:53 -0700
commit62f4c78f19965d8ff6a1072bc09c61b11d1277f6 (patch)
tree821c71bb9dece9e9cdb3f40627826d0c24e7a293 /test
parentbc53bc5cc537c29ab9e66b204543a02b865f6ee3 (diff)
downloadpython-magic-62f4c78f19965d8ff6a1072bc09c61b11d1277f6.tar.gz
Update for deprecation of testing in setup.py
test_suite is deprecated in setup.py, so remove it and replace the command in .travis.yml with directly running the test
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py
index 1f16b59..86a06e4 100755
--- a/test/test.py
+++ b/test/test.py
@@ -1,6 +1,12 @@
import os
# for output which reports a local time
os.environ['TZ'] = 'GMT'
+
+if os.environ.get('LC_ALL','') != 'en_US.UTF-8':
+ # this ensure we're in a utf-8 default filesystem encoding which is
+ # necessary for some tests
+ raise Exception("must run `export LC_ALL=en_US.UTF-8` before running test suite")
+
import shutil
import os.path
import unittest