diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04d0ce3..c735868 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 19.10b0 hooks: - id: black - args: [--safe, --quiet] + args: [--safe, --quiet, --target-version, py35] language_version: python3.7 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.4.0 diff --git a/src/xdist/report.py b/src/xdist/report.py index 3d239f1..1a132d0 100644 --- a/src/xdist/report.py +++ b/src/xdist/report.py @@ -13,9 +13,9 @@ def report_collection_diff(from_collection, to_collection, from_id, to_id): diff = unified_diff(from_collection, to_collection, fromfile=from_id, tofile=to_id) error_message = ( - u"Different tests were collected between {from_id} and {to_id}. " - u"The difference is:\n" - u"{diff}" + "Different tests were collected between {from_id} and {to_id}. " + "The difference is:\n" + "{diff}" ).format(from_id=from_id, to_id=to_id, diff="\n".join(diff)) msg = "\n".join([x.rstrip() for x in error_message.split("\n")]) return msg