[py-dev] Strange failure with py.test - too much magic?
Paul Moore
p.f.moore at gmail.com
Fri Jan 28 19:54:41 CET 2005
On Fri, 28 Jan 2005 19:23:55 +0100, holger krekel <hpk at trillke.net> wrote:
> On Fri, Jan 28, 2005 at 12:14 -0600, Ian Bicking wrote:
> > Paul Moore wrote:
> > >I thought I'd give py.test a try. So I grabbed the code from the
> > >Subversion repository and wrote a little test file, which just did an
> > >assert 1=0. I don't expect the test to succeed :-)
> >
> > This is invalid syntax, you meant:
> >
> > assert 1 == 0
Doh. Braindead at the end of a long day, but did I have to let the
whole world know??? Thanks for being kind enough to explain gently :-)
> > Though it's not the best error message that you got.
>
> Yes, that is indeed true. SyntaxErrors and ImportErrors of
> test files are totally utterly ugly at the moment.
In some mitigation for my stupidity, I would say that although I saw
"SyntaxError" in the traceback, it didn't point me at the error in my
code, and the overall error terrified me :-)
I suppose it's one of those "who tests the tests" sort of questions...
Regards,
Paul.
More information about the Pytest-dev
mailing list