1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/81afec2afcbf/ Changeset: 81afec2afcbf User: hpk42 Date: 2013-12-03 09:40:40 Summary: fix importorskip test Affected #: 1 file
diff -r 7cc1a4514c8e4b8329e28c6de8a7de6174c239ec -r 81afec2afcbf5d2c7e5d31ed3a35a7dd0b654820 testing/test_runner.py --- a/testing/test_runner.py +++ b/testing/test_runner.py @@ -469,12 +469,14 @@ assert path.purebasename == "test_runner" pytest.raises(SyntaxError, "py.test.importorskip('x y z')") pytest.raises(SyntaxError, "py.test.importorskip('x=y')") - path = importorskip("py", minversion=py.__version__) mod = py.std.types.ModuleType("hello123") mod.__version__ = "1.3" + sys.modules["hello123"] = mod pytest.raises(pytest.skip.Exception, """ py.test.importorskip("hello123", minversion="1.3.1") """) + mod2 = pytest.importorskip("hello123", minversion="1.3") + assert mod2 == mod except pytest.skip.Exception: print(py.code.ExceptionInfo()) py.test.fail("spurious skip") Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit