[pypy-svn] r40422 - pypy/dist/pypy/tool/bench/test

arigo at codespeak.net arigo at codespeak.net
Tue Mar 13 11:09:27 CET 2007


Author: arigo
Date: Tue Mar 13 11:09:25 2007
New Revision: 40422

Modified:
   pypy/dist/pypy/tool/bench/test/   (props changed)
   pypy/dist/pypy/tool/bench/test/test_benchmark_report.py
Log:
Skip test if Image cannot be imported.
Fixeol.


Modified: pypy/dist/pypy/tool/bench/test/test_benchmark_report.py
==============================================================================
--- pypy/dist/pypy/tool/bench/test/test_benchmark_report.py	(original)
+++ pypy/dist/pypy/tool/bench/test/test_benchmark_report.py	Tue Mar 13 11:09:25 2007
@@ -1,5 +1,11 @@
 import os
 import py
+
+try:
+    import Image
+except ImportError, e:
+    py.test.skip(str(e))
+
 from pypy.tool.bench.htmlreport import (
         PerfResult, PerfTable, PerfResultCollection,
         PerfResultDelta, Page



More information about the Pypy-commit mailing list