diff options
| author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
| commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
| tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/test_utils/tests.py | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/test_utils/tests.py')
| -rw-r--r-- | tests/test_utils/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index ea094bbd55..19ef405852 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -799,7 +799,7 @@ class SkippingExtraTests(TestCase): def __call__(self, result=None): # Detect fixture loading by counting SQL queries, should be zero with self.assertNumQueries(0): - super(SkippingExtraTests, self).__call__(result) + super().__call__(result) @unittest.skip("Fixture loading should not be performed for skipped tests.") def test_fixtures_are_skipped(self): @@ -1017,7 +1017,7 @@ class TestBadSetUpTestData(TestCase): @classmethod def setUpClass(cls): try: - super(TestBadSetUpTestData, cls).setUpClass() + super().setUpClass() except cls.MyException: cls._in_atomic_block = connection.in_atomic_block |
