amoffat / snake

Full Python Scripting in Vim
1.41k stars 56 forks source link

travis failing #2

Closed amoffat closed 9 years ago

amoffat commented 9 years ago

https://travis-ci.org/amoffat/snake/builds/62934759

Can't reproduce this failure locally using same version of Vim and Python. Any help would definitely be appreciated

11.22s$ python tests.py
...........F.........FE......
======================================================================
ERROR: test_let (__main__.VariableTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 398, in test_let
    self.assertEqual(output["original"], None)
TypeError: 'NoneType' object has no attribute '__getitem__'
======================================================================
FAIL: test_abbrev_fn (__main__.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 173, in test_abbrev_fn
    self.assertEqual(changed, "1 2\n")
AssertionError: u'\n' != '1 2\n'
======================================================================
FAIL: test_set_buffer_contents (__main__.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 150, in test_set_buffer_contents
    self.assertEqual(changed, "new stuff")
AssertionError: u'The quick brown fox jumps over the lazy dog' != 'new stuff'
----------------------------------------------------------------------
Ran 29 tests in 11.116s
FAILED (failures=2, errors=1)
hoelzro commented 9 years ago

@amoffat are you using the exact same version of vim and python locally?

amoffat commented 9 years ago

It does look like Travis is using Vim 7.3, and I'm on 7.4. Time to install 7.3...

hoelzro commented 9 years ago

@amoffat make sure you have the patch level right, too; a lot of distributions use a patch level above just Vim X.Y

amoffat commented 9 years ago

upgraded vim on the travis vms to 7.4. 7.3 be damned, for now

hoelzro commented 9 years ago

@amoffat You might want to check v:version to make sure people don't try snake with earlier versions