summaryrefslogtreecommitdiff
path: root/test/run.sh
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2017-11-20 09:21:00 -0800
committerAdam Hupp <adam@hupp.org>2017-11-20 09:23:19 -0800
commitbec0d4428f6de11ffd90d19dfddb5af9c72d9c63 (patch)
tree52e177a31a1a2d5b55ecc3516ddcf55810c2c3dc /test/run.sh
parent72c27fa8bfa4b8a53c09cdd42dd72f4c61d20504 (diff)
downloadpython-magic-bec0d4428f6de11ffd90d19dfddb5af9c72d9c63.tar.gz
python3 str handling
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.
Diffstat (limited to 'test/run.sh')
-rwxr-xr-xtest/run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run.sh b/test/run.sh
index 3768497..2764e15 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -1,12 +1,14 @@
#!/bin/sh
-set -e
# ensure we can use unicode filenames in the test
export LC_ALL=en_US.UTF-8
THISDIR=`dirname $0`
export PYTHONPATH=${THISDIR}/..
+echo "python2.6"
python2.6 ${THISDIR}/test.py
+echo "python2.7"
python2.7 ${THISDIR}/test.py
+echo "python3.0"
python3 ${THISDIR}/test.py