[pypy-svn] r18740 - pypy/dist/pypy/translator/asm/ppcgen/test
arigo at codespeak.net
arigo at codespeak.net
Tue Oct 18 17:51:06 CEST 2005
Author: arigo
Date: Tue Oct 18 17:51:05 2005
New Revision: 18740
Modified:
pypy/dist/pypy/translator/asm/ppcgen/test/test_form.py
pypy/dist/pypy/translator/asm/ppcgen/test/test_func_builder.py
pypy/dist/pypy/translator/asm/ppcgen/test/test_ppc.py
Log:
Ben Young's patch for Windows.
Modified: pypy/dist/pypy/translator/asm/ppcgen/test/test_form.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/test/test_form.py (original)
+++ pypy/dist/pypy/translator/asm/ppcgen/test/test_form.py Tue Oct 18 17:51:05 2005
@@ -1,6 +1,5 @@
import autopath
from pypy.translator.asm.ppcgen.ppc_assembler import b
-import unittest
import random
import sys
Modified: pypy/dist/pypy/translator/asm/ppcgen/test/test_func_builder.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/test/test_func_builder.py (original)
+++ pypy/dist/pypy/translator/asm/ppcgen/test/test_func_builder.py Tue Oct 18 17:51:05 2005
@@ -1,5 +1,4 @@
-import unittest
-
+import py
import random, sys, os
from pypy.translator.asm.ppcgen.ppc_assembler import MyPPCAssembler
@@ -10,7 +9,8 @@
class TestFuncBuilderTest(object):
def setup_class(cls):
- if os.uname()[-1] != 'Power Macintosh':
+ if (not hasattr(os, 'uname') or
+ os.uname()[-1] != 'Power Macintosh'):
py.test.skip("can't test all of ppcgen on non-PPC!")
def test_simple(self):
Modified: pypy/dist/pypy/translator/asm/ppcgen/test/test_ppc.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/test/test_ppc.py (original)
+++ pypy/dist/pypy/translator/asm/ppcgen/test/test_ppc.py Tue Oct 18 17:51:05 2005
@@ -1,3 +1,4 @@
+import py
import random, sys, os
from pypy.translator.asm.ppcgen.ppc_assembler import BasicPPCAssembler, MyPPCAssembler
@@ -18,7 +19,8 @@
class TestAssemble(object):
def setup_class(cls):
- if os.uname()[-1] != 'Power Macintosh':
+ if (not hasattr(os, 'uname') or
+ os.uname()[-1] != 'Power Macintosh'):
py.test.skip("can't test all of ppcgen on non-PPC!")
def test_tuplelength(self):
More information about the Pypy-commit
mailing list