get rid of usage of the new module

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-08-29 16:12:06 -05:00
parent ee86950af4
commit ee17858cce
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ 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 = py.std.types.ModuleType("hello123")
mod.__version__ = "1.3"
py.test.raises(Skipped, """
py.test.importorskip("hello123", minversion="5.0")