summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2026-02-24 20:36:09 -0300
commit090f1da56e663e9f840e307e73b5cf011cb7b061 (patch)
tree2283f72766c60c9462aa718fbe039ffdd3478ad3 /django/test
parent5f8b8e96a7a43d9e95c2deda3cf0c2855d976c64 (diff)
[6.0.x] Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0 Backport of 6cff02078799b7c683a0d39630d49ab4fe532e7c from main.
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 ecae164d7f..d5ca13bdf7 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):