Fix tests

This commit is contained in:
ZyX 2013-05-19 13:17:30 +04:00
parent ad35b48942
commit 962a1b6fc2
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class TestConfig(TestCase):
self.fail('Duplicate in set #{0} ({1}) for mode {2!r} (previously defined in set #{3} ({4!r}) for mode {5!r})'.format(i, (args, kwargs), mode, *outputs[out]))
outputs[out] = (i, (args, kwargs), mode)
with vim_module._with('bufname', 'foo.txt'):
with vim_module._with('bufname', '/tmp/foo.txt'):
with vim_module._with('globals', powerline_config_path=cfg_path):
exclude = set(('no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!'))
try:

View File

@ -358,7 +358,9 @@ class _Buffer(object):
bufnr = self.number
if _buf_lines:
_buf_lines.pop(bufnr)
if _undostate:
_undostate.pop(bufnr)
if _undo_written:
_undo_written.pop(bufnr)