Skip to content

Commit 369a473

Browse files
committed
Pylint 2.6 was recently released and added/renamed a "super-with-arguments" check which was causing pylint-django tests to fail due some input values still using the python 2 style super calls. This commit updates the test data to fix tests to pass with pylint 2.6. See pylint-dev/pylint@e6c9ef5
1 parent db6b26e commit 369a473

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ nosetests.xml
3333
.mr.developer.cfg
3434
.project
3535
.pydevproject
36+
.env

pylint_django/tests/input/external_factory_boy_noerror.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BookTestCase(test.LiveServerTestCase):
3838
serialized_rollback = True
3939

4040
def _fixture_setup(self):
41-
super(BookTestCase, self)._fixture_setup()
41+
super()._fixture_setup()
4242
self.book = BookFactory()
4343
_author = AuthorFactory()
4444
_first_book = _author.books.first()

pylint_django/tests/input/func_noerror_manytomanyfield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ def set_permissions(self, permissions):
5757
def save(self, *args, **kwargs):
5858
''' Saving while granting new permissions '''
5959
self.is_staff = True
60-
super(CustomUser, self).save()
60+
super().save()
6161
self.grant_permissions()

0 commit comments

Comments
 (0)