pre-commit run pyupgrade --all-files

This commit is contained in:
Anthony Sottile
2019-06-02 15:32:00 -07:00
committed by Bruno Oliveira
parent 3f1ec520fc
commit a91fe1fedd
100 changed files with 739 additions and 801 deletions

View File

@@ -1,8 +1,6 @@
""" run test suites written for nose. """
import sys
import six
import pytest
from _pytest import python
from _pytest import runner
@@ -23,7 +21,7 @@ def pytest_runtest_makereport(item, call):
if call.excinfo and call.excinfo.errisinstance(get_skip_exceptions()):
# let's substitute the excinfo with a pytest.skip one
call2 = runner.CallInfo.from_call(
lambda: pytest.skip(six.text_type(call.excinfo.value)), call.when
lambda: pytest.skip(str(call.excinfo.value)), call.when
)
call.excinfo = call2.excinfo