Skip to content

Commit 27b9493

Browse files
committed
Fix fuzzy completion test
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent c830c75 commit 27b9493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/test/test_repl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ def test_fuzzy_global_complete(self):
332332
self.assertTrue(self.repl.complete())
333333
self.assertTrue(hasattr(self.repl.matches_iter, 'matches'))
334334
self.assertEqual(self.repl.matches_iter.matches,
335-
['UnboundLocalError(', '__doc__'])
335+
['UnboundLocalError(', '__doc__'] if not py3 else
336+
['ChildProcessError(', 'UnboundLocalError(', '__doc__'])
336337

337338
# 2. Attribute tests
338339
def test_simple_attribute_complete(self):

0 commit comments

Comments
 (0)