Skip to content

Commit 5b1fc29

Browse files
Tests passing on Travis CI
1 parent 5dc6c71 commit 5b1fc29

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
16
bpython - A fancy curses interface to the Python interactive interpreter
27
========================================================================
38

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Repl(BpythonRepl):
206206
def __init__(self,
207207
locals_=None,
208208
config=None,
209-
request_refresh=lambda: None,
209+
request_refresh=lambda when='now': None,
210210
request_reload=lambda desc: None, get_term_hw=lambda:(50, 10),
211211
get_cursor_vertical_diff=lambda: 0,
212212
banner=None,

bpython/test/test_autocomplete.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import inspect
44

55
import unittest
6+
try:
7+
from unittest import skip
8+
except ImportError:
9+
def skip(f):
10+
return lambda self: None
611

712

813
# Parts of autocompletion to test:
@@ -48,7 +53,7 @@ class TestFilenameCompletion(unittest.TestCase):
4853

4954
class TestFormatters(unittest.TestCase):
5055

51-
@unittest.skip('not done yet')
56+
@skip('not done yet')
5257
def test_filename(self):
5358
self.assertEqual(autocomplete.last_part_of_filename('abc'), 'abc')
5459
self.assertEqual(autocomplete.last_part_of_filename('abc/'), 'abc/')
@@ -57,6 +62,6 @@ def test_filename(self):
5762
self.assertEqual(autocomplete.last_part_of_filename('/abc'), 'abc')
5863
self.assertEqual(autocomplete.last_part_of_filename('ab.c/e.f.g/'), 'e.f.g/')
5964

60-
@unittest.skip('not done yet')
65+
@skip('not done yet')
6166
def test_attribute(self):
6267
self.assertEqual(autocomplete.after_last_dot('abc.edf'), 'edf')

bpython/test/test_manual_readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def try_stages(self, strings, func):
174174

175175
stages = [(s.index('|'), s.replace('|', '')) for s in strings]
176176
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))
178178

179179
def test_transpose_character_before_cursor(self):
180180
self.try_stages(["as|df asdf",

bpython/test/test_repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def test_cur_line(self):
177177
self.matches_iterator.orig_line)
178178
self.matches_iterator.completer = completer
179179

180-
with self.assertRaises(ValueError):
181-
self.matches_iterator.cur_line()
180+
self.assertRaises(ValueError, self.matches_iterator.cur_line)
182181

183182
self.assertEqual(self.matches_iterator.next(), self.matches[0])
184183
self.assertEqual(self.matches_iterator.cur_line(),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy