comparison src/testdir/test86.ok @ 4706:bf917ee1fad2 v7.3.1100

updated for version 7.3.1100 Problem: Python: a few more memory problems. Solution: Add and remove Py_XDECREF(). (ZyX)
author Bram Moolenaar <bram@vim.org>
date Sun, 02 Jun 2013 18:54:21 +0200
parents 542af01979be
children d59ff2114733
comparison
equal deleted inserted replaced
4705:df6e3b069a8d 4706:bf917ee1fad2
501 d["a"] = {"abc" : FailingIterNext()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 501 d["a"] = {"abc" : FailingIterNext()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
502 <<< Finished 502 <<< Finished
503 >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s} 503 >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
504 d["a"] = {"abc" : None}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 504 d["a"] = {"abc" : None}:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
505 d["a"] = {"abc" : {"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 505 d["a"] = {"abc" : {"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
506 d["a"] = {"abc" : {u"": 1}}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
506 d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 507 d["a"] = {"abc" : FailingMapping()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
507 d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 508 d["a"] = {"abc" : FailingMappingKey()}:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
508 <<< Finished 509 <<< Finished
509 >>> Testing StringToChars using d["a"] = Mapping({%s : 1}) 510 >>> Testing StringToChars using d["a"] = Mapping({%s : 1})
510 d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 511 d["a"] = Mapping({1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
526 d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 527 d["a"] = Mapping({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
527 <<< Finished 528 <<< Finished
528 >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s}) 529 >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
529 d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 530 d["a"] = Mapping({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
530 d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 531 d["a"] = Mapping({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
532 d["a"] = Mapping({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
531 d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 533 d["a"] = Mapping({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
532 d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 534 d["a"] = Mapping({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
533 <<< Finished 535 <<< Finished
534 >>> Testing *Iter* using d["a"] = %s 536 >>> Testing *Iter* using d["a"] = %s
535 d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 537 d["a"] = FailingIter():(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
536 d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 538 d["a"] = FailingIterNext():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
537 <<< Finished 539 <<< Finished
538 >>> Testing ConvertFromPyObject using d["a"] = %s 540 >>> Testing ConvertFromPyObject using d["a"] = %s
539 d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 541 d["a"] = None:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
540 d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 542 d["a"] = {"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
543 d["a"] = {u"": 1}:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
541 d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 544 d["a"] = FailingMapping():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
542 d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 545 d["a"] = FailingMappingKey():(<type 'exceptions.NotImplementedError'>, NotImplementedError())
543 <<< Finished 546 <<< Finished
544 >> DictionaryUpdate 547 >> DictionaryUpdate
545 >>> kwargs 548 >>> kwargs
566 d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 569 d.update({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
567 <<< Finished 570 <<< Finished
568 >>> Testing ConvertFromPyObject using d.update({"abc" : %s}) 571 >>> Testing ConvertFromPyObject using d.update({"abc" : %s})
569 d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 572 d.update({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
570 d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 573 d.update({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
574 d.update({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
571 d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 575 d.update({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
572 d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 576 d.update({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
573 <<< Finished 577 <<< Finished
574 >>> Testing StringToChars using d.update(Mapping({%s : 1})) 578 >>> Testing StringToChars using d.update(Mapping({%s : 1}))
575 d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 579 d.update(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
591 d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 595 d.update(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
592 <<< Finished 596 <<< Finished
593 >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s})) 597 >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
594 d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 598 d.update(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
595 d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 599 d.update(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
600 d.update(Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
596 d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 601 d.update(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
597 d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 602 d.update(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
598 <<< Finished 603 <<< Finished
599 >>> Testing *Iter* using d.update(%s) 604 >>> Testing *Iter* using d.update(%s)
600 d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 605 d.update(FailingIter()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
601 d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 606 d.update(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
602 <<< Finished 607 <<< Finished
603 >>> Testing ConvertFromPyObject using d.update(%s) 608 >>> Testing ConvertFromPyObject using d.update(%s)
604 d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",)) 609 d.update(None):(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not iterable",))
605 d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 610 d.update({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
611 d.update({u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
606 d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 612 d.update(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
607 d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 613 d.update(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
608 <<< Finished 614 <<< Finished
609 >>> Testing StringToChars using d.update(((%s, 0),)) 615 >>> Testing StringToChars using d.update(((%s, 0),))
610 d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 616 d.update(((1, 0),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
631 d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 637 d.update((("a", {"abc" : FailingIterNext()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
632 <<< Finished 638 <<< Finished
633 >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),)) 639 >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
634 d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 640 d.update((("a", {"abc" : None}),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
635 d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 641 d.update((("a", {"abc" : {"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
642 d.update((("a", {"abc" : {u"": 1}}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
636 d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 643 d.update((("a", {"abc" : FailingMapping()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
637 d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 644 d.update((("a", {"abc" : FailingMappingKey()}),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
638 <<< Finished 645 <<< Finished
639 >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),)) 646 >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
640 d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 647 d.update((("a", Mapping({1 : 1})),)):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
656 d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 663 d.update((("a", Mapping({"abc" : FailingIterNext()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
657 <<< Finished 664 <<< Finished
658 >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),)) 665 >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
659 d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 666 d.update((("a", Mapping({"abc" : None})),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
660 d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 667 d.update((("a", Mapping({"abc" : {"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
668 d.update((("a", Mapping({"abc" : {u"": 1}})),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
661 d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 669 d.update((("a", Mapping({"abc" : FailingMapping()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
662 d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 670 d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
663 <<< Finished 671 <<< Finished
664 >>> Testing *Iter* using d.update((("a", %s),)) 672 >>> Testing *Iter* using d.update((("a", %s),))
665 d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 673 d.update((("a", FailingIter()),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
666 d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 674 d.update((("a", FailingIterNext()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
667 <<< Finished 675 <<< Finished
668 >>> Testing ConvertFromPyObject using d.update((("a", %s),)) 676 >>> Testing ConvertFromPyObject using d.update((("a", %s),))
669 d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 677 d.update((("a", None),)):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
670 d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 678 d.update((("a", {"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
679 d.update((("a", {u"": 1}),)):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
671 d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 680 d.update((("a", FailingMapping()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
672 d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 681 d.update((("a", FailingMappingKey()),)):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
673 <<< Finished 682 <<< Finished
674 >> DictionaryPopItem 683 >> DictionaryPopItem
675 d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('popitem() takes no arguments (2 given)',)) 684 d.popitem(1, 2):(<type 'exceptions.TypeError'>, TypeError('popitem() takes no arguments (2 given)',))
699 vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 708 vim.List([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
700 <<< Finished 709 <<< Finished
701 >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}]) 710 >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
702 vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 711 vim.List([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
703 vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 712 vim.List([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
713 vim.List([{"abc" : {u"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
704 vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 714 vim.List([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
705 vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 715 vim.List([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
706 <<< Finished 716 <<< Finished
707 >>> Testing StringToChars using vim.List([Mapping({%s : 1})]) 717 >>> Testing StringToChars using vim.List([Mapping({%s : 1})])
708 vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 718 vim.List([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
724 vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 734 vim.List([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
725 <<< Finished 735 <<< Finished
726 >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})]) 736 >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
727 vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 737 vim.List([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
728 vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 738 vim.List([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
739 vim.List([Mapping({"abc" : {u"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
729 vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 740 vim.List([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
730 vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 741 vim.List([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
731 <<< Finished 742 <<< Finished
732 >>> Testing *Iter* using vim.List([%s]) 743 >>> Testing *Iter* using vim.List([%s])
733 vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 744 vim.List([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
734 vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 745 vim.List([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
735 <<< Finished 746 <<< Finished
736 >>> Testing ConvertFromPyObject using vim.List([%s]) 747 >>> Testing ConvertFromPyObject using vim.List([%s])
737 vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 748 vim.List([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
738 vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 749 vim.List([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
750 vim.List([{u"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
739 vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 751 vim.List([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
740 vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 752 vim.List([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
741 <<< Finished 753 <<< Finished
742 >> ListItem 754 >> ListItem
743 l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',)) 755 l[1000]:(<type 'exceptions.IndexError'>, IndexError('list index out of range',))
766 l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 778 l[:] = [{"abc" : FailingIterNext()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
767 <<< Finished 779 <<< Finished
768 >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}] 780 >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
769 l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 781 l[:] = [{"abc" : None}]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
770 l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 782 l[:] = [{"abc" : {"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
783 l[:] = [{"abc" : {u"": 1}}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
771 l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 784 l[:] = [{"abc" : FailingMapping()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
772 l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 785 l[:] = [{"abc" : FailingMappingKey()}]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
773 <<< Finished 786 <<< Finished
774 >>> Testing StringToChars using l[:] = [Mapping({%s : 1})] 787 >>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
775 l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 788 l[:] = [Mapping({1 : 1})]:(<type 'exceptions.TypeError'>, TypeError('object must be string',))
791 l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 804 l[:] = [Mapping({"abc" : FailingIterNext()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
792 <<< Finished 805 <<< Finished
793 >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})] 806 >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
794 l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 807 l[:] = [Mapping({"abc" : None})]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
795 l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 808 l[:] = [Mapping({"abc" : {"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
809 l[:] = [Mapping({"abc" : {u"": 1}})]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
796 l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 810 l[:] = [Mapping({"abc" : FailingMapping()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
797 l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 811 l[:] = [Mapping({"abc" : FailingMappingKey()})]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
798 <<< Finished 812 <<< Finished
799 >>> Testing *Iter* using l[:] = [%s] 813 >>> Testing *Iter* using l[:] = [%s]
800 l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 814 l[:] = [FailingIter()]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
801 l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 815 l[:] = [FailingIterNext()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
802 <<< Finished 816 <<< Finished
803 >>> Testing ConvertFromPyObject using l[:] = [%s] 817 >>> Testing ConvertFromPyObject using l[:] = [%s]
804 l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 818 l[:] = [None]:(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
805 l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 819 l[:] = [{"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
820 l[:] = [{u"": 1}]:(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
806 l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 821 l[:] = [FailingMapping()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
807 l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 822 l[:] = [FailingMappingKey()]:(<type 'exceptions.NotImplementedError'>, NotImplementedError())
808 <<< Finished 823 <<< Finished
809 >> ListConcatInPlace 824 >> ListConcatInPlace
810 >>> Testing StringToChars using l.extend([{%s : 1}]) 825 >>> Testing StringToChars using l.extend([{%s : 1}])
827 l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 842 l.extend([{"abc" : FailingIterNext()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
828 <<< Finished 843 <<< Finished
829 >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}]) 844 >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
830 l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 845 l.extend([{"abc" : None}]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
831 l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 846 l.extend([{"abc" : {"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
847 l.extend([{"abc" : {u"": 1}}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
832 l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 848 l.extend([{"abc" : FailingMapping()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
833 l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 849 l.extend([{"abc" : FailingMappingKey()}]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
834 <<< Finished 850 <<< Finished
835 >>> Testing StringToChars using l.extend([Mapping({%s : 1})]) 851 >>> Testing StringToChars using l.extend([Mapping({%s : 1})])
836 l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 852 l.extend([Mapping({1 : 1})]):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
852 l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 868 l.extend([Mapping({"abc" : FailingIterNext()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
853 <<< Finished 869 <<< Finished
854 >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})]) 870 >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
855 l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 871 l.extend([Mapping({"abc" : None})]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
856 l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 872 l.extend([Mapping({"abc" : {"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
873 l.extend([Mapping({"abc" : {u"": 1}})]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
857 l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 874 l.extend([Mapping({"abc" : FailingMapping()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
858 l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 875 l.extend([Mapping({"abc" : FailingMappingKey()})]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
859 <<< Finished 876 <<< Finished
860 >>> Testing *Iter* using l.extend([%s]) 877 >>> Testing *Iter* using l.extend([%s])
861 l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 878 l.extend([FailingIter()]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
862 l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 879 l.extend([FailingIterNext()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
863 <<< Finished 880 <<< Finished
864 >>> Testing ConvertFromPyObject using l.extend([%s]) 881 >>> Testing ConvertFromPyObject using l.extend([%s])
865 l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 882 l.extend([None]):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
866 l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 883 l.extend([{"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
884 l.extend([{u"": 1}]):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
867 l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 885 l.extend([FailingMapping()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
868 l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 886 l.extend([FailingMappingKey()]):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
869 <<< Finished 887 <<< Finished
870 >> ListSetattr 888 >> ListSetattr
871 del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',)) 889 del l.locked:(<type 'exceptions.AttributeError'>, AttributeError('cannot delete vim.List attributes',))
897 f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 915 f({"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
898 <<< Finished 916 <<< Finished
899 >>> Testing ConvertFromPyObject using f({"abc" : %s}) 917 >>> Testing ConvertFromPyObject using f({"abc" : %s})
900 f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 918 f({"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
901 f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 919 f({"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
920 f({"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
902 f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 921 f({"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
903 f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 922 f({"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
904 <<< Finished 923 <<< Finished
905 >>> Testing StringToChars using f(Mapping({%s : 1})) 924 >>> Testing StringToChars using f(Mapping({%s : 1}))
906 f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 925 f(Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
922 f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 941 f(Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
923 <<< Finished 942 <<< Finished
924 >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s})) 943 >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
925 f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 944 f(Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
926 f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 945 f(Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
946 f(Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
927 f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 947 f(Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
928 f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 948 f(Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
929 <<< Finished 949 <<< Finished
930 >>> Testing *Iter* using f(%s) 950 >>> Testing *Iter* using f(%s)
931 f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 951 f(FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
932 f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 952 f(FailingIterNext()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
933 <<< Finished 953 <<< Finished
934 >>> Testing ConvertFromPyObject using f(%s) 954 >>> Testing ConvertFromPyObject using f(%s)
935 f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 955 f(None):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
936 f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 956 f({"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
957 f({u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
937 f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 958 f(FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
938 f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 959 f(FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
939 <<< Finished 960 <<< Finished
940 >>> Testing StringToChars using fd(self={%s : 1}) 961 >>> Testing StringToChars using fd(self={%s : 1})
941 fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 962 fd(self={1 : 1}):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
957 fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 978 fd(self={"abc" : FailingIterNext()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
958 <<< Finished 979 <<< Finished
959 >>> Testing ConvertFromPyObject using fd(self={"abc" : %s}) 980 >>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
960 fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 981 fd(self={"abc" : None}):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
961 fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 982 fd(self={"abc" : {"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
983 fd(self={"abc" : {u"": 1}}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
962 fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 984 fd(self={"abc" : FailingMapping()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
963 fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 985 fd(self={"abc" : FailingMappingKey()}):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
964 <<< Finished 986 <<< Finished
965 >>> Testing StringToChars using fd(self=Mapping({%s : 1})) 987 >>> Testing StringToChars using fd(self=Mapping({%s : 1}))
966 fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',)) 988 fd(self=Mapping({1 : 1})):(<type 'exceptions.TypeError'>, TypeError('object must be string',))
982 fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 1004 fd(self=Mapping({"abc" : FailingIterNext()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
983 <<< Finished 1005 <<< Finished
984 >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s})) 1006 >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
985 fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',)) 1007 fd(self=Mapping({"abc" : None})):(<type 'exceptions.TypeError'>, TypeError('unable to convert to vim structure',))
986 fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 1008 fd(self=Mapping({"abc" : {"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
1009 fd(self=Mapping({"abc" : {u"": 1}})):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
987 fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 1010 fd(self=Mapping({"abc" : FailingMapping()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
988 fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 1011 fd(self=Mapping({"abc" : FailingMappingKey()})):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
989 <<< Finished 1012 <<< Finished
990 >>> Testing *Iter* using fd(self=%s) 1013 >>> Testing *Iter* using fd(self=%s)
991 fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',)) 1014 fd(self=FailingIter()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
992 fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',)) 1015 fd(self=FailingIterNext()):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
993 <<< Finished 1016 <<< Finished
994 >>> Testing ConvertFromPyObject using fd(self=%s) 1017 >>> Testing ConvertFromPyObject using fd(self=%s)
995 fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',)) 1018 fd(self=None):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))
996 fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',)) 1019 fd(self={"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
1020 fd(self={u"": 1}):(<type 'exceptions.ValueError'>, ValueError('empty keys are not allowed',))
997 fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 1021 fd(self=FailingMapping()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
998 fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError()) 1022 fd(self=FailingMappingKey()):(<type 'exceptions.NotImplementedError'>, NotImplementedError())
999 <<< Finished 1023 <<< Finished
1000 >>> Testing ConvertFromPyMapping using fd(self=%s) 1024 >>> Testing ConvertFromPyMapping using fd(self=%s)
1001 fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',)) 1025 fd(self=[]):(<type 'exceptions.TypeError'>, TypeError('unable to convert object to vim dictionary',))