summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerGitHub <noreply@github.com>2026-01-18 21:26:56 +0100
commit6cff02078799b7c683a0d39630d49ab4fe532e7c (patch)
tree9813fc94d952942117b23d61231b9e89a8cab1c2 /django/test
parent0d31ca98830542088299d2078402891d08cc3a65 (diff)
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Diffstat (limited to 'django/test')
-rw-r--r--django/test/runner.py24
1 files changed, 6 insertions, 18 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 5cd72119f5..6df7b87fab 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -207,8 +207,7 @@ class RemoteTestResult(unittest.TestResult):
pickle.loads(pickle.dumps(obj))
def _print_unpicklable_subtest(self, test, subtest, pickle_exc):
- print(
- """
+ print("""
Subtest failed:
test: {}
@@ -221,10 +220,7 @@ test runner cannot handle it cleanly. Here is the pickling error:
You should re-run this test with --parallel=1 to reproduce the failure
with a cleaner failure message.
-""".format(
- test, subtest, pickle_exc
- )
- )
+""".format(test, subtest, pickle_exc))
def check_picklable(self, test, err):
# Ensure that sys.exc_info() tuples are picklable. This displays a
@@ -245,8 +241,7 @@ with a cleaner failure message.
pickle_exc_txt, 75, initial_indent=" ", subsequent_indent=" "
)
if tblib is None:
- print(
- """
+ print("""
{} failed:
@@ -258,13 +253,9 @@ parallel test runner to handle this exception cleanly.
In order to see the traceback, you should install tblib:
python -m pip install tblib
-""".format(
- test, original_exc_txt
- )
- )
+""".format(test, original_exc_txt))
else:
- print(
- """
+ print("""
{} failed:
@@ -279,10 +270,7 @@ Here's the error encountered while trying to pickle the exception:
You should re-run this test with the --parallel=1 option to reproduce the
failure and get a correct traceback.
-""".format(
- test, original_exc_txt, pickle_exc_txt
- )
- )
+""".format(test, original_exc_txt, pickle_exc_txt))
raise
def check_subtest_picklable(self, test, subtest):