Skip to content

Commit

Permalink
Pylint 2.6 was recently released and added/renamed a "super-with-argu…
Browse files Browse the repository at this point in the history
…ments" 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
  • Loading branch information
carlio committed Aug 23, 2020
1 parent db6b26e commit 369a473
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
.env
2 changes: 1 addition & 1 deletion pylint_django/tests/input/external_factory_boy_noerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BookTestCase(test.LiveServerTestCase):
serialized_rollback = True

def _fixture_setup(self):
super(BookTestCase, self)._fixture_setup()
super()._fixture_setup()
self.book = BookFactory()
_author = AuthorFactory()
_first_book = _author.books.first()
Expand Down
2 changes: 1 addition & 1 deletion pylint_django/tests/input/func_noerror_manytomanyfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def set_permissions(self, permissions):
def save(self, *args, **kwargs):
''' Saving while granting new permissions '''
self.is_staff = True
super(CustomUser, self).save()
super().save()
self.grant_permissions()

0 comments on commit 369a473

Please sign in to comment.