##// END OF EJS Templates
Backport PR #11110: Comment out jedi parts of test_omit__names
Matthias Bussonnier -
Show More
@@ -420,10 +420,10 b' def test_omit__names():'
420 nt.assert_in('ip.__str__', matches)
420 nt.assert_in('ip.__str__', matches)
421 nt.assert_in('ip._hidden_attr', matches)
421 nt.assert_in('ip._hidden_attr', matches)
422
422
423 c.use_jedi = True
423 # c.use_jedi = True
424 completions = set(c.completions('ip.', 3))
424 # completions = set(c.completions('ip.', 3))
425 nt.assert_in(Completion(3, 3, '__str__'), completions)
425 # nt.assert_in(Completion(3, 3, '__str__'), completions)
426 nt.assert_in(Completion(3,3, "_hidden_attr"), completions)
426 # nt.assert_in(Completion(3,3, "_hidden_attr"), completions)
427
427
428
428
429 cfg = Config()
429 cfg = Config()
@@ -435,10 +435,10 b' def test_omit__names():'
435 nt.assert_not_in('ip.__str__', matches)
435 nt.assert_not_in('ip.__str__', matches)
436 # nt.assert_in('ip._hidden_attr', matches)
436 # nt.assert_in('ip._hidden_attr', matches)
437
437
438 c.use_jedi = True
438 # c.use_jedi = True
439 completions = set(c.completions('ip.', 3))
439 # completions = set(c.completions('ip.', 3))
440 nt.assert_not_in(Completion(3,3,'__str__'), completions)
440 # nt.assert_not_in(Completion(3,3,'__str__'), completions)
441 nt.assert_in(Completion(3,3, "_hidden_attr"), completions)
441 # nt.assert_in(Completion(3,3, "_hidden_attr"), completions)
442
442
443 cfg = Config()
443 cfg = Config()
444 cfg.IPCompleter.omit__names = 2
444 cfg.IPCompleter.omit__names = 2
@@ -449,19 +449,19 b' def test_omit__names():'
449 nt.assert_not_in('ip.__str__', matches)
449 nt.assert_not_in('ip.__str__', matches)
450 nt.assert_not_in('ip._hidden_attr', matches)
450 nt.assert_not_in('ip._hidden_attr', matches)
451
451
452 c.use_jedi = True
452 # c.use_jedi = True
453 completions = set(c.completions('ip.', 3))
453 # completions = set(c.completions('ip.', 3))
454 nt.assert_not_in(Completion(3,3,'__str__'), completions)
454 # nt.assert_not_in(Completion(3,3,'__str__'), completions)
455 nt.assert_not_in(Completion(3,3, "_hidden_attr"), completions)
455 # nt.assert_not_in(Completion(3,3, "_hidden_attr"), completions)
456
456
457 with provisionalcompleter():
457 with provisionalcompleter():
458 c.use_jedi = False
458 c.use_jedi = False
459 s,matches = c.complete('ip._x.')
459 s,matches = c.complete('ip._x.')
460 nt.assert_in('ip._x.keys', matches)
460 nt.assert_in('ip._x.keys', matches)
461
461
462 c.use_jedi = True
462 # c.use_jedi = True
463 completions = set(c.completions('ip._x.', 6))
463 # completions = set(c.completions('ip._x.', 6))
464 nt.assert_in(Completion(6,6, "keys"), completions)
464 # nt.assert_in(Completion(6,6, "keys"), completions)
465
465
466 del ip._hidden_attr
466 del ip._hidden_attr
467 del ip._x
467 del ip._x
General Comments 0
You need to be logged in to leave comments. Login now