Mercurial > vim
comparison src/testdir/test87.ok @ 4637:4c46e1487c63 v7.3.1066
updated for version 7.3.1066
Problem: Python: Insufficient exception and error testing.
Solution: Python patch 25. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 30 May 2013 13:28:41 +0200 |
parents | 4157fef7b950 |
children | 59e6c2bd68e3 |
comparison
equal
deleted
inserted
replaced
4636:de7b8aca1be2 | 4637:4c46e1487c63 |
---|---|
416 ['a', 'dup_a'] | 416 ['a', 'dup_a'] |
417 ['a', 'a'] | 417 ['a', 'a'] |
418 ['a', 'b', 'c'] | 418 ['a', 'b', 'c'] |
419 [2, 2] | 419 [2, 2] |
420 [2, 2] | 420 [2, 2] |
421 (<class 'vim.error'>, error('abc',)) | 421 > Output |
422 (<class 'vim.error'>, error('def',)) | 422 >> OutputSetattr |
423 (<class 'vim.error'>, error('ghi',)) | 423 del sys.stdout.softspace:(<class 'AttributeError'>, AttributeError("can't delete OutputObject attributes",)) |
424 (<class 'vim.error'>, error('Vim(echoerr):jkl',)) | 424 sys.stdout.softspace = []:(<class 'TypeError'>, TypeError('softspace must be an integer',)) |
425 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) | 425 sys.stdout.attr = None:(<class 'AttributeError'>, AttributeError('invalid attribute',)) |
426 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) | 426 >> OutputWrite |
427 sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",)) | |
428 >> OutputWriteLines | |
429 sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",)) | |
430 sys.stdout.writelines([1]):(<class 'TypeError'>, TypeError('writelines() requires list of strings',)) | |
431 >>> Testing *Iter* using sys.stdout.writelines(%s) | |
432 sys.stdout.writelines(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) | |
433 sys.stdout.writelines(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
434 <<< Finished | |
435 > VimCommand | |
436 vim.command(1):(<class 'TypeError'>, TypeError('must be str, not int',)) | |
437 > VimToPython | |
438 > VimEval | |
439 vim.eval(1):(<class 'TypeError'>, TypeError('must be str, not int',)) | |
440 > VimEvalPy | |
441 vim.bindeval(1):(<class 'TypeError'>, TypeError('must be str, not int',)) | |
442 > VimStrwidth | |
443 vim.strwidth(1):(<class 'TypeError'>, TypeError('must be str, not int',)) | |
444 > Dictionary | |
445 >> DictionaryConstructor | |
446 vim.Dictionary("abc"):(<class 'ValueError'>, ValueError('expected sequence element of size 2',)) | |
447 >> DictionarySetattr | |
448 del d.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.Dictionary attributes',)) | |
449 d.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError()) | |
450 vim.vvars.locked = False:(<class 'TypeError'>, TypeError('cannot modify fixed dictionary',)) | |
451 d.scope = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',)) | |
452 d.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',)) | |
453 >> _DictionaryItem | |
454 d.get("a", 2, 3):(<class 'TypeError'>, TypeError('function takes at most 2 arguments (3 given)',)) | |
455 >>> Testing StringToChars using d.get(%s) | |
456 d.get(1):(<class 'TypeError'>, TypeError('object must be string',)) | |
457 d.get(u"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
458 d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
459 <<< Finished | |
460 d.pop("a"):(<class 'KeyError'>, KeyError('a',)) | |
461 dl.pop("a"):(<class 'vim.error'>, error('dict is locked',)) | |
462 >> DictionaryIterNext | |
463 for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',)) | |
464 >> DictionaryAssItem | |
465 dl["b"] = 1:(<class 'vim.error'>, error('dict is locked',)) | |
466 >>> Testing StringToChars using d[%s] = 1 | |
467 d[1] = 1:(<class 'TypeError'>, TypeError('object must be string',)) | |
468 d[u"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
469 d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
470 <<< Finished | |
471 >>> Testing StringToChars using d["a"] = {%s : 1} | |
472 d["a"] = {1 : 1}:(<class 'TypeError'>, TypeError('object must be string',)) | |
473 d["a"] = {u"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
474 d["a"] = {"\0" : 1}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
475 <<< Finished | |
476 >>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}} | |
477 d["a"] = {"abc" : {1 : 1}}:(<class 'TypeError'>, TypeError('object must be string',)) | |
478 d["a"] = {"abc" : {u"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
479 d["a"] = {"abc" : {"\0" : 1}}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
480 <<< Finished | |
481 >>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})} | |
482 d["a"] = {"abc" : Mapping({1 : 1})}:(<class 'TypeError'>, TypeError('object must be string',)) | |
483 d["a"] = {"abc" : Mapping({u"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
484 d["a"] = {"abc" : Mapping({"\0" : 1})}:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
485 <<< Finished | |
486 >>> Testing *Iter* using d["a"] = {"abc" : %s} | |
487 d["a"] = {"abc" : FailingIter()}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
488 d["a"] = {"abc" : FailingIterNext()}:(<class 'NotImplementedError'>, NotImplementedError()) | |
489 <<< Finished | |
490 >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s} | |
491 d["a"] = {"abc" : None}:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
492 d["a"] = {"abc" : {"": 1}}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
493 d["a"] = {"abc" : FailingMapping()}:(<class 'NotImplementedError'>, NotImplementedError()) | |
494 d["a"] = {"abc" : FailingMappingKey()}:(<class 'NotImplementedError'>, NotImplementedError()) | |
495 <<< Finished | |
496 >>> Testing StringToChars using d["a"] = Mapping({%s : 1}) | |
497 d["a"] = Mapping({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',)) | |
498 d["a"] = Mapping({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
499 d["a"] = Mapping({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
500 <<< Finished | |
501 >>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}}) | |
502 d["a"] = Mapping({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',)) | |
503 d["a"] = Mapping({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
504 d["a"] = Mapping({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
505 <<< Finished | |
506 >>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})}) | |
507 d["a"] = Mapping({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',)) | |
508 d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
509 d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
510 <<< Finished | |
511 >>> Testing *Iter* using d["a"] = Mapping({"abc" : %s}) | |
512 d["a"] = Mapping({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
513 d["a"] = Mapping({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
514 <<< Finished | |
515 >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s}) | |
516 d["a"] = Mapping({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
517 d["a"] = Mapping({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
518 d["a"] = Mapping({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
519 d["a"] = Mapping({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
520 <<< Finished | |
521 >>> Testing *Iter* using d["a"] = %s | |
522 d["a"] = FailingIter():(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
523 d["a"] = FailingIterNext():(<class 'NotImplementedError'>, NotImplementedError()) | |
524 <<< Finished | |
525 >>> Testing ConvertFromPyObject using d["a"] = %s | |
526 d["a"] = None:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
527 d["a"] = {"": 1}:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
528 d["a"] = FailingMapping():(<class 'NotImplementedError'>, NotImplementedError()) | |
529 d["a"] = FailingMappingKey():(<class 'NotImplementedError'>, NotImplementedError()) | |
530 <<< Finished | |
531 >> DictionaryUpdate | |
532 >>> kwargs | |
533 >>> iter | |
534 d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) | |
535 d.update([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
536 >>> Testing *Iter* using d.update(%s) | |
537 d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) | |
538 d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
539 <<< Finished | |
540 >>> Testing StringToChars using d.update({%s : 1}) | |
541 d.update({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',)) | |
542 d.update({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
543 d.update({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
544 <<< Finished | |
545 >>> Testing StringToChars using d.update({"abc" : {%s : 1}}) | |
546 d.update({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',)) | |
547 d.update({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
548 d.update({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
549 <<< Finished | |
550 >>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})}) | |
551 d.update({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',)) | |
552 d.update({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
553 d.update({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
554 <<< Finished | |
555 >>> Testing *Iter* using d.update({"abc" : %s}) | |
556 d.update({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
557 d.update({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
558 <<< Finished | |
559 >>> Testing ConvertFromPyObject using d.update({"abc" : %s}) | |
560 d.update({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
561 d.update({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
562 d.update({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
563 d.update({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
564 <<< Finished | |
565 >>> Testing StringToChars using d.update(Mapping({%s : 1})) | |
566 d.update(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',)) | |
567 d.update(Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
568 d.update(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
569 <<< Finished | |
570 >>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}})) | |
571 d.update(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',)) | |
572 d.update(Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
573 d.update(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
574 <<< Finished | |
575 >>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})})) | |
576 d.update(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',)) | |
577 d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
578 d.update(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
579 <<< Finished | |
580 >>> Testing *Iter* using d.update(Mapping({"abc" : %s})) | |
581 d.update(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
582 d.update(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
583 <<< Finished | |
584 >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s})) | |
585 d.update(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
586 d.update(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
587 d.update(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
588 d.update(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
589 <<< Finished | |
590 >>> Testing *Iter* using d.update(%s) | |
591 d.update(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) | |
592 d.update(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
593 <<< Finished | |
594 >>> Testing ConvertFromPyObject using d.update(%s) | |
595 d.update(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",)) | |
596 d.update({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
597 d.update(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) | |
598 d.update(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) | |
599 <<< Finished | |
600 >>> Testing StringToChars using d.update(((%s, 0),)) | |
601 d.update(((1, 0),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
602 d.update(((u"\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
603 d.update((("\0", 0),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
604 <<< Finished | |
605 >>> Testing StringToChars using d.update((("a", {%s : 1}),)) | |
606 d.update((("a", {1 : 1}),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
607 d.update((("a", {u"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
608 d.update((("a", {"\0" : 1}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
609 <<< Finished | |
610 >>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),)) | |
611 d.update((("a", {"abc" : {1 : 1}}),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
612 d.update((("a", {"abc" : {u"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
613 d.update((("a", {"abc" : {"\0" : 1}}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
614 <<< Finished | |
615 >>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),)) | |
616 d.update((("a", {"abc" : Mapping({1 : 1})}),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
617 d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
618 d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
619 <<< Finished | |
620 >>> Testing *Iter* using d.update((("a", {"abc" : %s}),)) | |
621 d.update((("a", {"abc" : FailingIter()}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
622 d.update((("a", {"abc" : FailingIterNext()}),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
623 <<< Finished | |
624 >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),)) | |
625 d.update((("a", {"abc" : None}),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
626 d.update((("a", {"abc" : {"": 1}}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
627 d.update((("a", {"abc" : FailingMapping()}),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
628 d.update((("a", {"abc" : FailingMappingKey()}),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
629 <<< Finished | |
630 >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),)) | |
631 d.update((("a", Mapping({1 : 1})),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
632 d.update((("a", Mapping({u"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
633 d.update((("a", Mapping({"\0" : 1})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
634 <<< Finished | |
635 >>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),)) | |
636 d.update((("a", Mapping({"abc" : {1 : 1}})),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
637 d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
638 d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
639 <<< Finished | |
640 >>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),)) | |
641 d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):(<class 'TypeError'>, TypeError('object must be string',)) | |
642 d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
643 d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
644 <<< Finished | |
645 >>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),)) | |
646 d.update((("a", Mapping({"abc" : FailingIter()})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
647 d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
648 <<< Finished | |
649 >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),)) | |
650 d.update((("a", Mapping({"abc" : None})),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
651 d.update((("a", Mapping({"abc" : {"": 1}})),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
652 d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
653 d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
654 <<< Finished | |
655 >>> Testing *Iter* using d.update((("a", %s),)) | |
656 d.update((("a", FailingIter()),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
657 d.update((("a", FailingIterNext()),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
658 <<< Finished | |
659 >>> Testing ConvertFromPyObject using d.update((("a", %s),)) | |
660 d.update((("a", None),)):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
661 d.update((("a", {"": 1}),)):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
662 d.update((("a", FailingMapping()),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
663 d.update((("a", FailingMappingKey()),)):(<class 'NotImplementedError'>, NotImplementedError()) | |
664 <<< Finished | |
665 >> DictionaryPopItem | |
666 d.popitem(1, 2):(<class 'TypeError'>, TypeError('function takes exactly 1 argument (2 given)',)) | |
667 >> DictionaryHasKey | |
668 d.has_key():(<class 'TypeError'>, TypeError('function takes exactly 1 argument (0 given)',)) | |
669 > List | |
670 >> ListConstructor | |
671 vim.List(1, 2):(<class 'TypeError'>, TypeError('function takes at most 1 argument (2 given)',)) | |
672 vim.List(a=1):(<class 'TypeError'>, TypeError('list constructor does not accept keyword arguments',)) | |
673 >>> Testing *Iter* using vim.List(%s) | |
674 vim.List(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) | |
675 vim.List(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
676 <<< Finished | |
677 >>> Testing StringToChars using vim.List([{%s : 1}]) | |
678 vim.List([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
679 vim.List([{u"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
680 vim.List([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
681 <<< Finished | |
682 >>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}]) | |
683 vim.List([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
684 vim.List([{"abc" : {u"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
685 vim.List([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
686 <<< Finished | |
687 >>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}]) | |
688 vim.List([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
689 vim.List([{"abc" : Mapping({u"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
690 vim.List([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
691 <<< Finished | |
692 >>> Testing *Iter* using vim.List([{"abc" : %s}]) | |
693 vim.List([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
694 vim.List([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
695 <<< Finished | |
696 >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}]) | |
697 vim.List([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
698 vim.List([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
699 vim.List([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
700 vim.List([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
701 <<< Finished | |
702 >>> Testing StringToChars using vim.List([Mapping({%s : 1})]) | |
703 vim.List([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
704 vim.List([Mapping({u"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
705 vim.List([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
706 <<< Finished | |
707 >>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})]) | |
708 vim.List([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
709 vim.List([Mapping({"abc" : {u"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
710 vim.List([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
711 <<< Finished | |
712 >>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})]) | |
713 vim.List([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
714 vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
715 vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
716 <<< Finished | |
717 >>> Testing *Iter* using vim.List([Mapping({"abc" : %s})]) | |
718 vim.List([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
719 vim.List([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
720 <<< Finished | |
721 >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})]) | |
722 vim.List([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
723 vim.List([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
724 vim.List([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
725 vim.List([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
726 <<< Finished | |
727 >>> Testing *Iter* using vim.List([%s]) | |
728 vim.List([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
729 vim.List([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
730 <<< Finished | |
731 >>> Testing ConvertFromPyObject using vim.List([%s]) | |
732 vim.List([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
733 vim.List([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
734 vim.List([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
735 vim.List([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
736 <<< Finished | |
737 >> ListItem | |
738 l[1000]:(<class 'IndexError'>, IndexError('list index out of range',)) | |
739 >> ListAssItem | |
740 ll[1] = 2:(<class 'vim.error'>, error('list is locked',)) | |
741 l[1000] = 3:(<class 'IndexError'>, IndexError('list index out of range',)) | |
742 >> ListAssSlice | |
743 ll[1:100] = "abc":(<class 'vim.error'>, error('list is locked',)) | |
744 >>> Testing *Iter* using l[:] = %s | |
745 l[:] = FailingIter():(<class 'NotImplementedError'>, NotImplementedError()) | |
746 l[:] = FailingIterNext()::(<class 'NotImplementedError'>, NotImplementedError()) | |
747 <<< Finished | |
748 >>> Testing StringToChars using l[:] = [{%s : 1}] | |
749 l[:] = [{1 : 1}]:(<class 'TypeError'>, TypeError('object must be string',)) | |
750 l[:] = [{u"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
751 l[:] = [{"\0" : 1}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
752 <<< Finished | |
753 >>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}] | |
754 l[:] = [{"abc" : {1 : 1}}]:(<class 'TypeError'>, TypeError('object must be string',)) | |
755 l[:] = [{"abc" : {u"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
756 l[:] = [{"abc" : {"\0" : 1}}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
757 <<< Finished | |
758 >>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}] | |
759 l[:] = [{"abc" : Mapping({1 : 1})}]:(<class 'TypeError'>, TypeError('object must be string',)) | |
760 l[:] = [{"abc" : Mapping({u"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
761 l[:] = [{"abc" : Mapping({"\0" : 1})}]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
762 <<< Finished | |
763 >>> Testing *Iter* using l[:] = [{"abc" : %s}] | |
764 l[:] = [{"abc" : FailingIter()}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
765 l[:] = [{"abc" : FailingIterNext()}]:(<class 'NotImplementedError'>, NotImplementedError()) | |
766 <<< Finished | |
767 >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}] | |
768 l[:] = [{"abc" : None}]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
769 l[:] = [{"abc" : {"": 1}}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
770 l[:] = [{"abc" : FailingMapping()}]:(<class 'NotImplementedError'>, NotImplementedError()) | |
771 l[:] = [{"abc" : FailingMappingKey()}]:(<class 'NotImplementedError'>, NotImplementedError()) | |
772 <<< Finished | |
773 >>> Testing StringToChars using l[:] = [Mapping({%s : 1})] | |
774 l[:] = [Mapping({1 : 1})]:(<class 'TypeError'>, TypeError('object must be string',)) | |
775 l[:] = [Mapping({u"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
776 l[:] = [Mapping({"\0" : 1})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
777 <<< Finished | |
778 >>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})] | |
779 l[:] = [Mapping({"abc" : {1 : 1}})]:(<class 'TypeError'>, TypeError('object must be string',)) | |
780 l[:] = [Mapping({"abc" : {u"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
781 l[:] = [Mapping({"abc" : {"\0" : 1}})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
782 <<< Finished | |
783 >>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})] | |
784 l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:(<class 'TypeError'>, TypeError('object must be string',)) | |
785 l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
786 l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
787 <<< Finished | |
788 >>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})] | |
789 l[:] = [Mapping({"abc" : FailingIter()})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
790 l[:] = [Mapping({"abc" : FailingIterNext()})]:(<class 'NotImplementedError'>, NotImplementedError()) | |
791 <<< Finished | |
792 >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})] | |
793 l[:] = [Mapping({"abc" : None})]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
794 l[:] = [Mapping({"abc" : {"": 1}})]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
795 l[:] = [Mapping({"abc" : FailingMapping()})]:(<class 'NotImplementedError'>, NotImplementedError()) | |
796 l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<class 'NotImplementedError'>, NotImplementedError()) | |
797 <<< Finished | |
798 >>> Testing *Iter* using l[:] = [%s] | |
799 l[:] = [FailingIter()]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
800 l[:] = [FailingIterNext()]:(<class 'NotImplementedError'>, NotImplementedError()) | |
801 <<< Finished | |
802 >>> Testing ConvertFromPyObject using l[:] = [%s] | |
803 l[:] = [None]:(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
804 l[:] = [{"": 1}]:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
805 l[:] = [FailingMapping()]:(<class 'NotImplementedError'>, NotImplementedError()) | |
806 l[:] = [FailingMappingKey()]:(<class 'NotImplementedError'>, NotImplementedError()) | |
807 <<< Finished | |
808 >> ListConcatInPlace | |
809 >>> Testing *Iter* using l.extend(%s) | |
810 l.extend(FailingIter()):(<class 'NotImplementedError'>, NotImplementedError()) | |
811 l.extend(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
812 <<< Finished | |
813 >>> Testing StringToChars using l.extend([{%s : 1}]) | |
814 l.extend([{1 : 1}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
815 l.extend([{u"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
816 l.extend([{"\0" : 1}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
817 <<< Finished | |
818 >>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}]) | |
819 l.extend([{"abc" : {1 : 1}}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
820 l.extend([{"abc" : {u"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
821 l.extend([{"abc" : {"\0" : 1}}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
822 <<< Finished | |
823 >>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}]) | |
824 l.extend([{"abc" : Mapping({1 : 1})}]):(<class 'TypeError'>, TypeError('object must be string',)) | |
825 l.extend([{"abc" : Mapping({u"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
826 l.extend([{"abc" : Mapping({"\0" : 1})}]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
827 <<< Finished | |
828 >>> Testing *Iter* using l.extend([{"abc" : %s}]) | |
829 l.extend([{"abc" : FailingIter()}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
830 l.extend([{"abc" : FailingIterNext()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
831 <<< Finished | |
832 >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}]) | |
833 l.extend([{"abc" : None}]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
834 l.extend([{"abc" : {"": 1}}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
835 l.extend([{"abc" : FailingMapping()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
836 l.extend([{"abc" : FailingMappingKey()}]):(<class 'NotImplementedError'>, NotImplementedError()) | |
837 <<< Finished | |
838 >>> Testing StringToChars using l.extend([Mapping({%s : 1})]) | |
839 l.extend([Mapping({1 : 1})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
840 l.extend([Mapping({u"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
841 l.extend([Mapping({"\0" : 1})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
842 <<< Finished | |
843 >>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})]) | |
844 l.extend([Mapping({"abc" : {1 : 1}})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
845 l.extend([Mapping({"abc" : {u"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
846 l.extend([Mapping({"abc" : {"\0" : 1}})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
847 <<< Finished | |
848 >>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})]) | |
849 l.extend([Mapping({"abc" : Mapping({1 : 1})})]):(<class 'TypeError'>, TypeError('object must be string',)) | |
850 l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
851 l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
852 <<< Finished | |
853 >>> Testing *Iter* using l.extend([Mapping({"abc" : %s})]) | |
854 l.extend([Mapping({"abc" : FailingIter()})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
855 l.extend([Mapping({"abc" : FailingIterNext()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
856 <<< Finished | |
857 >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})]) | |
858 l.extend([Mapping({"abc" : None})]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
859 l.extend([Mapping({"abc" : {"": 1}})]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
860 l.extend([Mapping({"abc" : FailingMapping()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
861 l.extend([Mapping({"abc" : FailingMappingKey()})]):(<class 'NotImplementedError'>, NotImplementedError()) | |
862 <<< Finished | |
863 >>> Testing *Iter* using l.extend([%s]) | |
864 l.extend([FailingIter()]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
865 l.extend([FailingIterNext()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
866 <<< Finished | |
867 >>> Testing ConvertFromPyObject using l.extend([%s]) | |
868 l.extend([None]):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
869 l.extend([{"": 1}]):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
870 l.extend([FailingMapping()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
871 l.extend([FailingMappingKey()]):(<class 'NotImplementedError'>, NotImplementedError()) | |
872 <<< Finished | |
873 >> ListSetattr | |
874 del l.locked:(<class 'AttributeError'>, AttributeError('cannot delete vim.List attributes',)) | |
875 l.locked = FailingTrue():(<class 'NotImplementedError'>, NotImplementedError()) | |
876 l.xxx = True:(<class 'AttributeError'>, AttributeError('cannot set this attribute',)) | |
877 > Function | |
878 >> FunctionConstructor | |
879 vim.Function("123"):(<class 'ValueError'>, ValueError('unnamed function does not exist',)) | |
880 vim.Function("xxx_non_existent_function_xxx"):(<class 'ValueError'>, ValueError('function does not exist',)) | |
881 vim.Function("xxx#non#existent#function#xxx"):(<class 'ValueError'>, ValueError('function does not exist',)) | |
882 >> FunctionCall | |
883 >>> Testing StringToChars using f({%s : 1}) | |
884 f({1 : 1}):(<class 'TypeError'>, TypeError('object must be string',)) | |
885 f({u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
886 f({"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
887 <<< Finished | |
888 >>> Testing StringToChars using f({"abc" : {%s : 1}}) | |
889 f({"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',)) | |
890 f({"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
891 f({"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
892 <<< Finished | |
893 >>> Testing StringToChars using f({"abc" : Mapping({%s : 1})}) | |
894 f({"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',)) | |
895 f({"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
896 f({"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
897 <<< Finished | |
898 >>> Testing *Iter* using f({"abc" : %s}) | |
899 f({"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
900 f({"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
901 <<< Finished | |
902 >>> Testing ConvertFromPyObject using f({"abc" : %s}) | |
903 f({"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
904 f({"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
905 f({"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
906 f({"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
907 <<< Finished | |
908 >>> Testing StringToChars using f(Mapping({%s : 1})) | |
909 f(Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',)) | |
910 f(Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
911 f(Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
912 <<< Finished | |
913 >>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}})) | |
914 f(Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',)) | |
915 f(Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
916 f(Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
917 <<< Finished | |
918 >>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})})) | |
919 f(Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',)) | |
920 f(Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
921 f(Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
922 <<< Finished | |
923 >>> Testing *Iter* using f(Mapping({"abc" : %s})) | |
924 f(Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
925 f(Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
926 <<< Finished | |
927 >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s})) | |
928 f(Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
929 f(Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
930 f(Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
931 f(Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
932 <<< Finished | |
933 >>> Testing *Iter* using f(%s) | |
934 f(FailingIter()):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
935 f(FailingIterNext()):(<class 'NotImplementedError'>, NotImplementedError()) | |
936 <<< Finished | |
937 >>> Testing ConvertFromPyObject using f(%s) | |
938 f(None):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
939 f({"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
940 f(FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) | |
941 f(FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) | |
942 <<< Finished | |
943 >>> Testing StringToChars using fd(self={%s : 1}) | |
944 fd(self={1 : 1}):(<class 'TypeError'>, TypeError('object must be string',)) | |
945 fd(self={u"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
946 fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
947 <<< Finished | |
948 >>> Testing StringToChars using fd(self={"abc" : {%s : 1}}) | |
949 fd(self={"abc" : {1 : 1}}):(<class 'TypeError'>, TypeError('object must be string',)) | |
950 fd(self={"abc" : {u"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
951 fd(self={"abc" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
952 <<< Finished | |
953 >>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})}) | |
954 fd(self={"abc" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('object must be string',)) | |
955 fd(self={"abc" : Mapping({u"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
956 fd(self={"abc" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
957 <<< Finished | |
958 >>> Testing *Iter* using fd(self={"abc" : %s}) | |
959 fd(self={"abc" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
960 fd(self={"abc" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
961 <<< Finished | |
962 >>> Testing ConvertFromPyObject using fd(self={"abc" : %s}) | |
963 fd(self={"abc" : None}):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
964 fd(self={"abc" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
965 fd(self={"abc" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
966 fd(self={"abc" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError()) | |
967 <<< Finished | |
968 >>> Testing StringToChars using fd(self=Mapping({%s : 1})) | |
969 fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('object must be string',)) | |
970 fd(self=Mapping({u"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
971 fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
972 <<< Finished | |
973 >>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}})) | |
974 fd(self=Mapping({"abc" : {1 : 1}})):(<class 'TypeError'>, TypeError('object must be string',)) | |
975 fd(self=Mapping({"abc" : {u"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
976 fd(self=Mapping({"abc" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
977 <<< Finished | |
978 >>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})})) | |
979 fd(self=Mapping({"abc" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('object must be string',)) | |
980 fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
981 fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | |
982 <<< Finished | |
983 >>> Testing *Iter* using fd(self=Mapping({"abc" : %s})) | |
984 fd(self=Mapping({"abc" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
985 fd(self=Mapping({"abc" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
986 <<< Finished | |
987 >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s})) | |
988 fd(self=Mapping({"abc" : None})):(<class 'TypeError'>, TypeError('unable to convert to vim structure',)) | |
989 fd(self=Mapping({"abc" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
990 fd(self=Mapping({"abc" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
991 fd(self=Mapping({"abc" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedError()) | |
992 <<< Finished | |
993 >>> Testing *Iter* using fd(self=%s) | |
994 fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',)) | |
995 fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',)) | |
996 <<< Finished | |
997 >>> Testing ConvertFromPyObject using fd(self=%s) | |
998 fd(self=None):(<class 'TypeError'>, TypeError('unable to convert object to vim dictionary',)) | |
999 fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
1000 fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError()) | |
1001 fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError()) | |
1002 <<< Finished | |
1003 >>> Testing ConvertFromPyMapping using fd(self=%s) | |
1004 fd(self=[]):(<class 'AttributeError'>, AttributeError("'list' object has no attribute 'keys'",)) | |
1005 <<< Finished | |
1006 > TabPage | |
1007 >> TabPageAttr | |
1008 vim.current.tabpage.xxx:(<class 'AttributeError'>, AttributeError("'vim.tabpage' object has no attribute 'xxx'",)) | |
1009 > TabList | |
1010 >> TabListItem | |
1011 vim.tabpages[1000]:(<class 'IndexError'>, IndexError('no such tab page',)) | |
1012 > Window | |
1013 >> WindowAttr | |
1014 vim.current.window.xxx:(<class 'AttributeError'>, AttributeError("'vim.window' object has no attribute 'xxx'",)) | |
1015 >> WindowSetattr | |
1016 vim.current.window.buffer = 0:(<class 'TypeError'>, TypeError('readonly attribute',)) | |
1017 vim.current.window.cursor = (10000000000, 100000000):(<class 'vim.error'>, error('cursor position outside buffer',)) | |
1018 vim.current.window.cursor = True:(<class 'TypeError'>, TypeError('argument must be 2-item sequence, not bool',)) | |
1019 vim.current.window.height = "abc":(<class 'TypeError'>, TypeError('an integer is required',)) | |
1020 vim.current.window.width = "abc":(<class 'TypeError'>, TypeError('an integer is required',)) | |
1021 vim.current.window.xxxxxx = True:(<class 'AttributeError'>, AttributeError('xxxxxx',)) | |
1022 > WinList | |
1023 >> WinListItem | |
1024 vim.windows[1000]:(<class 'IndexError'>, IndexError('no such window',)) | |
1025 > Buffer | |
1026 >> StringToLine (indirect) | |
1027 vim.current.buffer[0] = "\na":(<class 'vim.error'>, error('string cannot contain newlines',)) | |
1028 >> SetBufferLine (indirect) | |
1029 vim.current.buffer[0] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) | |
1030 >> SetBufferLines (indirect) | |
1031 vim.current.buffer[:] = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) | |
1032 vim.current.buffer[:] = ["\na", "bc"]:(<class 'vim.error'>, error('string cannot contain newlines',)) | |
1033 >> InsertBufferLines (indirect) | |
1034 vim.current.buffer.append(None):(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) | |
1035 vim.current.buffer.append(["\na", "bc"]):(<class 'vim.error'>, error('string cannot contain newlines',)) | |
1036 vim.current.buffer.append("\nbc"):(<class 'vim.error'>, error('string cannot contain newlines',)) | |
1037 >> RBItem | |
1038 vim.current.buffer[10000000000]:(<class 'IndexError'>, IndexError('line number out of range',)) | |
1039 >> RBAsItem | |
1040 vim.current.buffer[10000000000] = "":(<class 'IndexError'>, IndexError('line number out of range',)) | |
1041 >> BufferAttr | |
1042 vim.current.buffer.xxx:(<class 'AttributeError'>, AttributeError("'vim.buffer' object has no attribute 'xxx'",)) | |
1043 >> BufferSetattr | |
1044 vim.current.buffer.name = True:(<class 'TypeError'>, TypeError('object must be string',)) | |
1045 vim.current.buffer.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',)) | |
1046 >> BufferMark | |
1047 vim.current.buffer.mark(0):(<class 'TypeError'>, TypeError('must be str, not int',)) | |
1048 vim.current.buffer.mark("abc"):(<class 'ValueError'>, ValueError('mark name must be a single character',)) | |
1049 vim.current.buffer.mark("!"):(<class 'vim.error'>, error('invalid mark name',)) | |
1050 >> BufferRange | |
1051 vim.current.buffer.range(1, 2, 3):(<class 'TypeError'>, TypeError('function takes exactly 2 arguments (3 given)',)) | |
1052 > BufMap | |
1053 >> BufMapItem | |
1054 vim.buffers[None]:(<class 'TypeError'>, TypeError('key must be integer',)) | |
1055 vim.buffers[100000000]:(<class 'KeyError'>, KeyError(100000000,)) | |
1056 > Current | |
1057 >> CurrentGetattr | |
1058 vim.current.xxx:(<class 'AttributeError'>, AttributeError("'vim.currentdata' object has no attribute 'xxx'",)) | |
1059 >> CurrentSetattr | |
1060 vim.current.line = True:(<class 'TypeError'>, TypeError('bad argument type for built-in operation',)) | |
1061 vim.current.buffer = True:(<class 'TypeError'>, TypeError('expected vim.Buffer object',)) | |
1062 vim.current.window = True:(<class 'TypeError'>, TypeError('expected vim.Window object',)) | |
1063 vim.current.tabpage = True:(<class 'TypeError'>, TypeError('expected vim.TabPage object',)) | |
1064 vim.current.xxx = True:(<class 'AttributeError'>, AttributeError('xxx',)) | |
1065 vim.command("throw 'abc'"):(<class 'vim.error'>, error('abc',)) | |
1066 Exe("throw 'def'"):(<class 'vim.error'>, error('def',)) | |
1067 vim.eval("Exe('throw ''ghi''')"):(<class 'vim.error'>, error('ghi',)) | |
1068 vim.eval("Exe('echoerr ''jkl''')"):(<class 'vim.error'>, error('Vim(echoerr):jkl',)) | |
1069 vim.eval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) | |
1070 vim.bindeval("Exe('xxx_non_existent_command_xxx')"):(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) |