Remove __multicall__ warning and usages in testing

pluggy>=0.5 already warns about those
This commit is contained in:
Bruno Oliveira
2017-08-30 20:23:55 -03:00
parent 11ec6aeafb
commit 3dc0da9339
6 changed files with 21 additions and 41 deletions

View File

@@ -637,12 +637,14 @@ def test_pytest_cmdline_main(testdir):
def test_unicode_in_longrepr(testdir):
testdir.makeconftest("""
import py
def pytest_runtest_makereport(__multicall__):
rep = __multicall__.execute()
# -*- coding: utf-8 -*-
import pytest
@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_makereport():
outcome = yield
rep = outcome.get_result()
if rep.when == "call":
rep.longrepr = py.builtin._totext("\\xc3\\xa4", "utf8")
return rep
rep.longrepr = u'ä'
""")
testdir.makepyfile("""
def test_out():