Skip to content

Commit f72f395

Browse files
committed
Simplify test skipping if joda is not available.
1 parent 935c849 commit f72f395

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bpython/test/test_autocomplete.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,14 @@ def test_magic_methods_complete_after_double_underscores(self):
223223
Comp = namedtuple('Completion', ['name', 'complete'])
224224

225225

226+
@unittest.skipUnless(has_jedi, "jedi required")
226227
class TestMultilineJediCompletion(unittest.TestCase):
227228

228-
@unittest.skipIf(not has_jedi, "jedi not available")
229229
def test_returns_none_with_single_line(self):
230230
com = autocomplete.MultilineJediCompletion()
231231
self.assertEqual(com.matches(2, 'Va', current_block='Va', history=[]),
232232
None)
233233

234-
@unittest.skipIf(not has_jedi, "jedi not available")
235234
def test_returns_non_with_blank_second_line(self):
236235
com = autocomplete.MultilineJediCompletion()
237236
self.assertEqual(com.matches(0, '', current_block='class Foo():\n',
@@ -246,14 +245,12 @@ def matches_from_completions(self, cursor, line, block, history,
246245
return com.matches(cursor, line, current_block=block,
247246
history=history)
248247

249-
@unittest.skipIf(not has_jedi, "jedi not available")
250248
def test_completions_starting_with_different_letters(self):
251249
matches = self.matches_from_completions(
252250
2, ' a', 'class Foo:\n a', ['adsf'],
253251
[Comp('Abc', 'bc'), Comp('Cbc', 'bc')])
254252
self.assertEqual(matches, None)
255253

256-
@unittest.skipIf(not has_jedi, "jedi not available")
257254
def test_completions_starting_with_different_cases(self):
258255
matches = self.matches_from_completions(
259256
2, ' a', 'class Foo:\n a', ['adsf'],

0 commit comments

Comments
 (0)