Nikolay Pavlov wrote:
> On Jun 10, 2013 8:46 PM, "Bram Moolenaar" <[email protected]> wrote:
> >
> >
> > After fixing the crash, I still have test 86 fail with slightly
> > different output. The first difference is:
> >
> > --- testdir/test86.ok 2013-06-10 12:42:36.304223000 +0200
> > +++ testdir/test86.failed 2013-06-10 18:31:36.849765000 +0200
> > @@ -497,7 +497,7 @@
> > d["a"] = {"abc" : Mapping({"\0" : 1})}:(<type 'exceptions.TypeError'>,
> > TypeError('expected string without null bytes',))
> > <<< Finished
> > >>> Testing *Iter* using d["a"] = {"abc" : %s}
> > -d["a"] = {"abc" : FailingIter()}:(<type 'exceptions.TypeError'>,
> > TypeError('unable to convert to vim structure',))
> > +d["a"] = {"abc" : FailingIter()}:(<type 'exceptions.NotImplementedError'>,
> > NotImplementedError())
> > d["a"] = {"abc" : FailingIterNext()}:(<type
> > 'exceptions.NotImplementedError'>, NotImplementedError())
> > <<< Finished
> > >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
> >
> > The following differences ones are similar.
> >
> > This is with Python 2.7.3. However, another Python 2.7.3 does not have
> > these errors. Any idea what triggers the difference?
>
> No idea, but it now looks like initially intended (I noted the difference,
> but as I was not sure that initial intention was right left tests as-is).
Hmm. Can we test for what the result should be, instead of what happens
to get printed? Maybe using the text representation is not the right
thing to do, we could check the type of the exception. Or two types if
both are OK.
--
hundred-and-one symptoms of being an internet addict:
139. You down your lunch in five minutes, at your desk, so you can
spend the rest of the hour surfing the Net.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.