From 9f3685a527c9293b05c8ad7a6a4a7c2fa8b3b8b8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Jun 2013 14:20:36 +0200 Subject: updated for version 7.3.1172 Problem: Python 2: loading modules doesn't work well. Solution: Fix the code. Add more tests. (ZyX) --- src/testdir/test87.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/testdir/test87.in') 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 -- cgit v1.2.3