[py-svn] py-trunk commit 0ff3f750a3f0: fix test for python2.7
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jul 6 13:31:22 CEST 2010
# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User holger krekel <holger at merlinux.eu>
# Date 1278415772 -7200
# Node ID 0ff3f750a3f0d0d212ac5f7f2c87e68033429a8a
# Parent 890a9cc881a14fb167955a51a068114787fec1ce
fix test for python2.7
--- a/testing/test_deprecated_api.py
+++ b/testing/test_deprecated_api.py
@@ -292,7 +292,7 @@ def test_conftest_non_python_items(recwa
assert item.name == "hello.xxx"
assert item.__class__.__name__ == "CustomItem"
-def test_extra_python_files_and_functions(testdir):
+def test_extra_python_files_and_functions(testdir, recwarn):
testdir.makepyfile(conftest="""
import py
class MyFunction(py.test.collect.Function):
More information about the pytest-commit
mailing list