From a2837ab778d39e66c6178dae34a3bebdc638061f Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 9 Jul 2009 13:13:31 +0200 Subject: [PATCH] fix test --HG-- branch : trunk --- py/test/testing/test_outcome.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/test/testing/test_outcome.py b/py/test/testing/test_outcome.py index 006629093..db65897ee 100644 --- a/py/test/testing/test_outcome.py +++ b/py/test/testing/test_outcome.py @@ -26,8 +26,10 @@ def test_importorskip(): py.test.raises(SyntaxError, "py.test.importorskip('x y z')") py.test.raises(SyntaxError, "py.test.importorskip('x=y')") path = py.test.importorskip("py", minversion=".".join(py.__version__)) + mod = py.std.new.module("hello123") + mod.__version__ = "1.3" py.test.raises(Skipped, """ - py.test.importorskip("py", minversion="5.0") + py.test.importorskip("hello123", minversion="5.0") """) except Skipped: print py.code.ExceptionInfo()