Merged in bubenkoff/pytest/fix-broken-tests (pull request #65)

Fix broken python3 and python2.5 tests
This commit is contained in:
holger krekel 2013-08-15 13:03:20 +02:00
commit e27dbdd071
2 changed files with 3 additions and 1 deletions

View File

@ -5,12 +5,13 @@ import py.code
def test_fixture_finalizer(testdir):
testdir.makeconftest("""
import pytest
import sys
@pytest.fixture
def browser(request):
def finalize():
print 'Finalized'
sys.stdout.write('Finalized')
request.addfinalizer(finalize)
return {}
""")

View File

@ -31,6 +31,7 @@ commands=
changedir=.
basepython=python2.7
deps=pytest-xdist
distribute=true
setenv=
PYTHONDONTWRITEBYTECODE=1
commands=