[pypy-svn] r9112 - pypy/dist/pypy/tool

arigo at codespeak.net arigo at codespeak.net
Fri Feb 11 14:57:14 CET 2005


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'])



More information about the Pypy-commit mailing list