From 444568528548333704772fcfb960af734ad944fc Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 12 Jan 2011 18:57:40 +0100 Subject: [PATCH] pypy doesn't neccessarily honour -OO it seems, let's not test assertions there. --- testing/test_assertion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 3cf76c19c..484b439ec 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -206,7 +206,7 @@ def test_traceback_failure(testdir): "*test_traceback_failure.py:4: AssertionError" ]) -@pytest.mark.skipif("sys.version_info < (2,5)") +@pytest.mark.skipif("sys.version_info < (2,5) or '__pypy__' in sys.builtin_module_names") def test_warn_missing(testdir): p1 = testdir.makepyfile("") result = testdir.run(sys.executable, "-OO", "-m", "pytest", "-h")