[pypy-dev] Re: [pypy-svn] r9112 - pypy/dist/pypy/tool
Laura Creighton
lac at strakt.com
Fri Feb 11 18:32:25 CET 2005
That was me, mindlessly following a ruleset in my head to convert UnitTestLanguage into code.
Some days I am a stupid as a machine.
laura
In a message of Fri, 11 Feb 2005 14:57:14 +0100, arigo at codespeak.net writes:
>Author: arigo
>Date: Fri Feb 11 14:57:14 2005
>New Revision: 9112
>
>Modified:
> pypy/dist/pypy/tool/utestconvert.py
>Log:
>Not sure why failUnlessEqual(x,y) is converted into assert not x!=y.
>
>
>Modified: pypy/dist/pypy/tool/utestconvert.py
>=========================================================================
>=====
>--- pypy/dist/pypy/tool/utestconvert.py (original)
>+++ pypy/dist/pypy/tool/utestconvert.py Fri Feb 11 14:57:14 2005
>@@ -18,11 +18,11 @@
> d['assertEqual'] = ('assert', ' ==', [2,3])
> d['failIfEqual'] = ('assert not', ' ==', [2,3])
> d['assertNotEqual'] = ('assert', ' !=', [2,3])
>-d['failUnlessEqual'] = ('assert not', ' !=', [2,3])
>+d['failUnlessEqual'] = ('assert', ' ==', [2,3])
> d['assertAlmostEqual'] = ('assert round', ' ==', [2,3,4])
> d['failIfAlmostEqual'] = ('assert not round', ' ==', [2,3,4])
> d['assertNotAlmostEqual'] = ('assert round', ' !=', [2,3,4])
>-d['failUnlessAlmostEquals'] = ('assert not round', ' !=', [2,3,4])
>+d['failUnlessAlmostEquals'] = ('assert round', ' ==', [2,3,4])
> # PyPy specific
> d['assertRaises_w'] = ('self.space.raises_w', '', ['Any']
>)
> d['assertEqual_w'] = ('assert self.space.eq_w','',['Any'])
>_______________________________________________
>pypy-svn mailing list
>pypy-svn at codespeak.net
>http://codespeak.net/mailman/listinfo/pypy-svn
More information about the Pypy-dev
mailing list