[pypy-svn] r18466 - pypy/dist/pypy/translator/asm/test

mwh at codespeak.net mwh at codespeak.net
Wed Oct 12 14:41:40 CEST 2005


Author: mwh
Date: Wed Oct 12 14:41:39 2005
New Revision: 18466

Modified:
   pypy/dist/pypy/translator/asm/test/test_asm.py
Log:
Run asm tests on the simulator, don't generate ppc code (for now).


Modified: pypy/dist/pypy/translator/asm/test/test_asm.py
==============================================================================
--- pypy/dist/pypy/translator/asm/test/test_asm.py	(original)
+++ pypy/dist/pypy/translator/asm/test/test_asm.py	Wed Oct 12 14:41:39 2005
@@ -5,10 +5,10 @@
 class TestAsm(object):
 
     def setup_class(cls):
-        if not hasattr(os, "uname") or os.uname()[-1] != 'Power Macintosh':
-            py.test.skip('asm generation only on PPC')
-        
-        cls.processor = 'ppc'
+        #if not hasattr(os, "uname") or os.uname()[-1] != 'Power Macintosh':
+        #    py.test.skip('asm generation only on PPC')
+        # 
+        #cls.processor = 'ppc'
 
     def getcompiled(self, func, view=False):
         t = Translator(func, simplifying=True)
@@ -44,8 +44,8 @@
                 return x + y - 42
         f = self.getcompiled(testfn)#, view=True)
 
-        assert f(2, 3) == testfn(2, 3)
         assert f(-2, 3) == testfn(-2, 3)
+        assert f(2, 5) == testfn(2, 5)
 
     def test_loop(self):
         def testfn(lim=int):



More information about the Pypy-commit mailing list