diff options
| author | David Smith <smithdc@gmail.com> | 2023-02-01 07:13:39 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-01 11:37:29 +0100 |
| commit | 80aae8343939e849100db87b1c9615f32b38ea0b (patch) | |
| tree | 266b80026685000c0fff56a677e0f4973e1699cc /django/test/testcases.py | |
| parent | 8a7b22d4a623bcd95190d2f5a958472fb41e576d (diff) | |
[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.
Black 23.1.0 is released which, as the first release of the year,
introduces the 2023 stable style. This incorporates most of last year's
preview style.
https://github.com/psf/black/releases/tag/23.1.0
Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
Diffstat (limited to 'django/test/testcases.py')
| -rw-r--r-- | django/test/testcases.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index c29a13a710..1d8980ceed 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -290,7 +290,6 @@ class _AssertFormErrorDeprecationHelper: class SimpleTestCase(unittest.TestCase): - # The class we'll use for the test client self.client. # Can be overridden in derived classes. client_class = Client @@ -800,7 +799,6 @@ class SimpleTestCase(unittest.TestCase): ) def _get_template_used(self, response, template_name, msg_prefix, method_name): - if response is None and template_name is None: raise TypeError("response and/or template_name argument must be provided") @@ -1157,7 +1155,6 @@ class SimpleTestCase(unittest.TestCase): class TransactionTestCase(SimpleTestCase): - # Subclasses can ask for resetting of auto increment sequence before each # test case reset_sequences = False |
