| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5dc6c71 commit 5b1fc29
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + language: python | ||
| 2 | + | ||
| 3 | + python: | ||
| 4 | + - "2.6" | ||
| 5 | + - "2.7" | ||
| 6 | + - "3.3" | ||
| 7 | + - "3.4" | ||
| 8 | + | ||
| 9 | + install: | ||
| 10 | + - "python setup.py install" | ||
| 11 | + - "pip install curtsies greenlet pygments" | ||
| 12 | + | ||
| 13 | + script: | ||
| 14 | + - cd build/lib/ | ||
| 15 | + - "nosetests bpython/test" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,8 @@ | |||
| 1 | + |ImageLink|_ | ||
| 2 | + | ||
| 3 | + .. |ImageLink| image:: https://travis-ci.org/thomasballinger/bpython.svg?branch=travis` | ||
| 4 | + .. _ImageLink: https://travis-ci.org/thomasballinger/bpython | ||
| 5 | + | ||
| 1 | 6 | bpython - A fancy curses interface to the Python interactive interpreter | |
| 2 | 7 | ======================================================================== | |
| 3 | 8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,7 +206,7 @@ class Repl(BpythonRepl): | |||
| 206 | 206 | def __init__(self, | |
| 207 | 207 | locals_=None, | |
| 208 | 208 | config=None, | |
| 209 | - request_refresh=lambda: None, | ||
| 209 | + request_refresh=lambda when='now': None, | ||
| 210 | 210 | request_reload=lambda desc: None, get_term_hw=lambda:(50, 10), | |
| 211 | 211 | get_cursor_vertical_diff=lambda: 0, | |
| 212 | 212 | banner=None, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,11 @@ | |||
| 3 | 3 | import inspect | |
| 4 | 4 | ||
| 5 | 5 | import unittest | |
| 6 | + try: | ||
| 7 | + from unittest import skip | ||
| 8 | + except ImportError: | ||
| 9 | + def skip(f): | ||
| 10 | + return lambda self: None | ||
| 6 | 11 | ||
| 7 | 12 | ||
| 8 | 13 | # Parts of autocompletion to test: | |
@@ -48,7 +53,7 @@ class TestFilenameCompletion(unittest.TestCase): | |||
| 48 | 53 | ||
| 49 | 54 | class TestFormatters(unittest.TestCase): | |
| 50 | 55 | ||
| 51 | - @unittest.skip('not done yet') | ||
| 56 | + @skip('not done yet') | ||
| 52 | 57 | def test_filename(self): | |
| 53 | 58 | self.assertEqual(autocomplete.last_part_of_filename('abc'), 'abc') | |
| 54 | 59 | self.assertEqual(autocomplete.last_part_of_filename('abc/'), 'abc/') | |
@@ -57,6 +62,6 @@ def test_filename(self): | |||
| 57 | 62 | self.assertEqual(autocomplete.last_part_of_filename('/abc'), 'abc') | |
| 58 | 63 | self.assertEqual(autocomplete.last_part_of_filename('ab.c/e.f.g/'), 'e.f.g/') | |
| 59 | 64 | ||
| 60 | - @unittest.skip('not done yet') | ||
| 65 | + @skip('not done yet') | ||
| 61 | 66 | def test_attribute(self): | |
| 62 | 67 | self.assertEqual(autocomplete.after_last_dot('abc.edf'), 'edf') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -174,7 +174,7 @@ def try_stages(self, strings, func): | |||
| 174 | 174 | ||
| 175 | 175 | stages = [(s.index('|'), s.replace('|', '')) for s in strings] | |
| 176 | 176 | for (initial_pos, initial), (final_pos, final) in zip(stages[:-1], stages[1:]): | |
| 177 | - self.assertTupleEqual(func(initial_pos, initial), (final_pos, final)) | ||
| 177 | + self.assertEquals(func(initial_pos, initial), (final_pos, final)) | ||
| 178 | 178 | ||
| 179 | 179 | def test_transpose_character_before_cursor(self): | |
| 180 | 180 | self.try_stages(["as|df asdf", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -177,8 +177,7 @@ def test_cur_line(self): | |||
| 177 | 177 | self.matches_iterator.orig_line) | |
| 178 | 178 | self.matches_iterator.completer = completer | |
| 179 | 179 | ||
| 180 | - with self.assertRaises(ValueError): | ||
| 181 | - self.matches_iterator.cur_line() | ||
| 180 | + self.assertRaises(ValueError, self.matches_iterator.cur_line) | ||
| 182 | 181 | ||
| 183 | 182 | self.assertEqual(self.matches_iterator.next(), self.matches[0]) | |
| 184 | 183 | self.assertEqual(self.matches_iterator.cur_line(), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments