Merged in bubenkoff/pytest/fix-broken-tests (pull request #65)
Fix broken python3 and python2.5 tests
This commit is contained in:
		
						commit
						e27dbdd071
					
				|  | @ -5,12 +5,13 @@ import py.code | ||||||
| def test_fixture_finalizer(testdir): | def test_fixture_finalizer(testdir): | ||||||
|     testdir.makeconftest(""" |     testdir.makeconftest(""" | ||||||
|     import pytest |     import pytest | ||||||
|  |     import sys | ||||||
| 
 | 
 | ||||||
|     @pytest.fixture |     @pytest.fixture | ||||||
|     def browser(request): |     def browser(request): | ||||||
| 
 | 
 | ||||||
|         def finalize(): |         def finalize(): | ||||||
|             print 'Finalized' |             sys.stdout.write('Finalized') | ||||||
|         request.addfinalizer(finalize) |         request.addfinalizer(finalize) | ||||||
|         return {} |         return {} | ||||||
|     """) |     """) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue