File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 88import sys
99import tempfile
1010
11- import unittest
1211try :
13- from unittest import skip
12+ import unittest2 as unittest
1413except ImportError :
15- def skip ( f ):
16- return lambda self : None
14+ import unittest
15+
1716
1817py3 = (sys .version_info [0 ] == 3 )
1918
@@ -73,7 +72,7 @@ def test_get_last_word(self):
7372 self .repl .get_last_word ()
7473 self .assertEqual (self .repl .current_line ,'abcde3' )
7574
76- @skip # this is the behavior of bash - not currently implemented
75+ @unittest . skip # this is the behavior of bash - not currently implemented
7776 def test_get_last_word_with_prev_line (self ):
7877 self .repl .rl_history .entries = ['1' ,'2 3' ,'4 5 6' ]
7978 self .repl ._set_current_line ('abcde' )
@@ -251,7 +250,7 @@ def test_simple(self):
251250 self .assertEqual (self .repl .predicted_indent ('def asdf():' ), 4 )
252251 self .assertEqual (self .repl .predicted_indent ('def asdf(): return 7' ), 0 )
253252
254- @skip
253+ @unittest . skip
255254 def test_complex (self ):
256255 self .assertEqual (self .repl .predicted_indent ('[a,' ), 1 )
257256 self .assertEqual (self .repl .predicted_indent ('reduce(asdfasdf,' ), 7 )
You can’t perform that action at this time.
0 commit comments