pypy doesn't neccessarily honour -OO it seems, let's not test assertions there.

This commit is contained in:
holger krekel 2011-01-12 18:57:40 +01:00
parent ae9b7a8bea
commit 4445685285
1 changed files with 1 additions and 1 deletions

View File

@ -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")