From 0cd7effe35ce52a2d16c8e0e5466c0dc51db92da Mon Sep 17 00:00:00 2001 From: Anatoly Bubenkov Date: Thu, 15 Aug 2013 11:52:55 +0200 Subject: [PATCH 2/2] fix broken python3 and python2.5 tests --HG-- branch : fix-broken-tests --- testing/test_fixture_finalizer.py | 3 ++- tox.ini | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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=