File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22import unittest
33from itertools import islice
44from mock import Mock
5+ try :
6+ from unittest import skip
7+ except ImportError :
8+ def skip (f ):
9+ return lambda self : None
10+
511from bpython import config , repl , cli , autocomplete
612
713def setup_config (conf ):
@@ -239,7 +245,7 @@ def test_current_string(self):
239245 self .assertEqual (self .repl .current_string (), '' )
240246
241247 # TODO: figure out how to capture whether foobar is in globals
242- @unittest . skip ('not working yet' )
248+ @skip ('not working yet' )
243249 def test_push (self ):
244250 self .repl = FakeRepl ()
245251 self .repl .push ("foobar = 2" )
@@ -338,7 +344,7 @@ def test_file_should_not_appear_in_complete(self):
338344 self .repl .current_word = "_"
339345 self .assertTrue (self .repl .complete ())
340346 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 )
342348
343349
344350class TestCliRepl (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments