mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Silence most ResourceWarnings (#1393)
A few test classes were failing to call tearDown() of the superclass, which meant the file descriptors of their replydata files were leaking. Make sure to call it, and switch every other callsite of superclasses by name to using argument-less super(). Revert an AllTests change that snuck in during release.
This commit is contained in:
@@ -285,7 +285,7 @@ class NonCompletableGithubObject(GithubObject):
|
||||
|
||||
class CompletableGithubObject(GithubObject):
|
||||
def __init__(self, requester, headers, attributes, completed):
|
||||
GithubObject.__init__(self, requester, headers, attributes, completed)
|
||||
super().__init__(requester, headers, attributes, completed)
|
||||
self.__completed = completed
|
||||
|
||||
def __eq__(self, other):
|
||||
|
||||
Reference in New Issue
Block a user