[pypy-svn] r72894 - pypy/trunk/pypy/module/pyexpat/test

arigo at codespeak.net arigo at codespeak.net
Fri Mar 26 14:18:27 CET 2010


Author: arigo
Date: Fri Mar 26 14:18:25 2010
New Revision: 72894

Modified:
   pypy/trunk/pypy/module/pyexpat/test/test_build.py
Log:
Skip this test also if the interp-level module 'expat' is not there.


Modified: pypy/trunk/pypy/module/pyexpat/test/test_build.py
==============================================================================
--- pypy/trunk/pypy/module/pyexpat/test/test_build.py	(original)
+++ pypy/trunk/pypy/module/pyexpat/test/test_build.py	Fri Mar 26 14:18:25 2010
@@ -4,8 +4,12 @@
 from pypy.rpython.lltypesystem import rffi, lltype
 from pypy.rpython.tool.rffi_platform import CompilationError
 
-import os, pyexpat
+import os
 import py
+try:
+    import pyexpat
+except ImportError:
+    py.test.skip("No module expat")
 
 try:
    from pypy.module.pyexpat import interp_pyexpat



More information about the Pypy-commit mailing list