summaryrefslogtreecommitdiff
path: root/src/testdir/test87.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-12 14:20:36 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-12 14:20:36 +0200
commit9f3685a527c9293b05c8ad7a6a4a7c2fa8b3b8b8 (patch)
tree4a01e3e62a1ecc504d835720319f0a26f71c041c /src/testdir/test87.in
parent0ea4a6b94b6f7a13ef5027b43c36bda0836b51af (diff)
downloadvim-9f3685a527c9293b05c8ad7a6a4a7c2fa8b3b8b8.zip
updated for version 7.3.1172
Problem: Python 2: loading modules doesn't work well. Solution: Fix the code. Add more tests. (ZyX)
Diffstat (limited to 'src/testdir/test87.in')
-rw-r--r--src/testdir/test87.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test87.in b/src/testdir/test87.in
index 7a3d58359..1223ca96a 100644
--- a/src/testdir/test87.in
+++ b/src/testdir/test87.in
@@ -2,6 +2,7 @@ Tests for various python features. vim: set ft=vim :
STARTTEST
:so small.vim
+:set noswapfile
:if !has('python3') | e! test.ok | wq! test.out | endif
:lang C
:py3 import vim
@@ -1038,10 +1039,16 @@ EOF
:"
:" Test import
py3 << EOF
+sys.path.insert(0, os.path.join(os.getcwd(), 'python_before'))
+sys.path.append(os.path.join(os.getcwd(), 'python_after'))
vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
from module import dir as d
from modulex import ddir
cb.append(d + ',' + ddir)
+import before
+cb.append(before.dir)
+import after
+cb.append(after.dir)
EOF
:"
:" Test exceptions