|
8 | 8 | importsys |
9 | 9 | importtempfile |
10 | 10 |
|
11 | | -importunittest |
12 | 11 | try: |
13 | | -fromunittestimportskip |
| 12 | +importunittest2asunittest |
14 | 13 | exceptImportError: |
15 | | -defskip(f): |
16 | | -returnlambdaself:None |
| 14 | +importunittest |
| 15 | + |
17 | 16 |
|
18 | 17 | py3= (sys.version_info[0]==3) |
19 | 18 |
|
@@ -73,7 +72,7 @@ def test_get_last_word(self): |
73 | 72 | self.repl.get_last_word() |
74 | 73 | self.assertEqual(self.repl.current_line,'abcde3') |
75 | 74 |
|
76 | | -@skip# this is the behavior of bash - not currently implemented |
| 75 | +@unittest.skip# this is the behavior of bash - not currently implemented |
77 | 76 | deftest_get_last_word_with_prev_line(self): |
78 | 77 | self.repl.rl_history.entries=['1','2 3','4 5 6'] |
79 | 78 | self.repl._set_current_line('abcde') |
@@ -251,7 +250,7 @@ def test_simple(self): |
251 | 250 | self.assertEqual(self.repl.predicted_indent('def asdf():'),4) |
252 | 251 | self.assertEqual(self.repl.predicted_indent('def asdf(): return 7'),0) |
253 | 252 |
|
254 | | -@skip |
| 253 | +@unittest.skip |
255 | 254 | deftest_complex(self): |
256 | 255 | self.assertEqual(self.repl.predicted_indent('[a,'),1) |
257 | 256 | self.assertEqual(self.repl.predicted_indent('reduce(asdfasdf,'),7) |
|