diff options
| author | Adam Hupp <adam@hupp.org> | 2020-05-05 14:41:38 -0700 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2020-05-05 14:44:53 -0700 |
| commit | 62f4c78f19965d8ff6a1072bc09c61b11d1277f6 (patch) | |
| tree | 821c71bb9dece9e9cdb3f40627826d0c24e7a293 /test | |
| parent | bc53bc5cc537c29ab9e66b204543a02b865f6ee3 (diff) | |
| download | python-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-x | test/test.py | 6 |
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 |
