fix broken python3 and python2.5 tests

--HG--
branch : fix-broken-tests
This commit is contained in:
Anatoly Bubenkov 2013-08-15 11:52:55 +02:00
parent 5851a99b82
commit 0cd7effe35
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=