File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
import unittest
3
3
from itertools import islice
4
4
from mock import Mock
5
+ try :
6
+ from unittest import skip
7
+ except ImportError :
8
+ def skip (f ):
9
+ return lambda self : None
10
+
5
11
from bpython import config , repl , cli , autocomplete
6
12
7
13
def setup_config (conf ):
@@ -239,7 +245,7 @@ def test_current_string(self):
239
245
self .assertEqual (self .repl .current_string (), '' )
240
246
241
247
# TODO: figure out how to capture whether foobar is in globals
242
- @unittest . skip ('not working yet' )
248
+ @skip ('not working yet' )
243
249
def test_push (self ):
244
250
self .repl = FakeRepl ()
245
251
self .repl .push ("foobar = 2" )
@@ -338,7 +344,7 @@ def test_file_should_not_appear_in_complete(self):
338
344
self .repl .current_word = "_"
339
345
self .assertTrue (self .repl .complete ())
340
346
self .assertTrue (hasattr (self .repl .completer ,'matches' ))
341
- self .assertNotIn ('__file__' , self .repl .completer .matches )
347
+ self .assertTrue ('__file__' not in self .repl .completer .matches )
342
348
343
349
344
350
class TestCliRepl (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments