diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-12 14:20:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-12 14:20:36 +0200 |
commit | 9f3685a527c9293b05c8ad7a6a4a7c2fa8b3b8b8 (patch) | |
tree | 4a01e3e62a1ecc504d835720319f0a26f71c041c /src/testdir/test86.in | |
parent | 0ea4a6b94b6f7a13ef5027b43c36bda0836b51af (diff) |
updated for version 7.3.1172v7.3.1172
Problem: Python 2: loading modules doesn't work well.
Solution: Fix the code. Add more tests. (ZyX)
Diffstat (limited to 'src/testdir/test86.in')
-rw-r--r-- | src/testdir/test86.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test86.in b/src/testdir/test86.in index 26c7fe2178..e22ae31039 100644 --- a/src/testdir/test86.in +++ b/src/testdir/test86.in @@ -8,6 +8,7 @@ See http://svn.python.org/view/python/trunk/Misc/README.valgrind?view=markup STARTTEST :so small.vim :set encoding=latin1 +:set noswapfile :if !has('python') | e! test.ok | wq! test.out | endif :lang C :py import vim @@ -1071,10 +1072,16 @@ EOF :" :" Test import py << 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 |