[MERGE] InterTree.compare doesn't pass require_versioned on correctly

Marius Kruger amanic at gmail.com
Tue Jul 31 21:27:59 BST 2007


Thanks Robert,
here is a new patch with using assertRaises.

On 7/30/07, Robert Collins <robertc at robertcollins.net> wrote:
> On Sun, 2007-07-29 at 01:40 +0200, Marius Kruger wrote:
> >
> > +        try:
> > +            delta = wt.changes_from(wt.basis_tree(), wt,
> > +                specific_files=['known_file', 'unknown_file'] ,
> > +                require_versioned=True)
> > +            self.fail('Expected PathsNotVersionedError to be thrown
> > when '
> > +                'passing a known and unknown file to
> > tree.changes_from '
> > +                'and specifying require_versioned.')
> > +        except errors.PathsNotVersionedError, e :
> > +            pass
>
> This is more easily written as:
> self.assertRaises(errors.PathsNotVersionedError,
>     wt.changes_from, wt.basis_tree(), wt,specific_files=['known_file',
> 'unknown_file'] ,require_versioned=True)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InterTree_ignores_param2.patch
Type: text/x-patch
Size: 5877 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070731/ff16876b/attachment.bin 


More information about the bazaar mailing list