diff --git a/testing/test_fixture_finalizer.py b/testing/test_fixture_finalizer.py index 911647819..0fdaa68fc 100644 --- a/testing/test_fixture_finalizer.py +++ b/testing/test_fixture_finalizer.py @@ -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 {} """) diff --git a/tox.ini b/tox.ini index 679574189..fe0be41c1 100644 --- a/tox.ini +++ b/tox.ini @@ -31,6 +31,7 @@ commands= changedir=. basepython=python2.7 deps=pytest-xdist +distribute=true setenv= PYTHONDONTWRITEBYTECODE=1 commands=