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:
Steve Kowalik
2020-02-12 15:05:32 +11:00
committed by GitHub
parent f8bf46f82b
commit dd31a70659
10 changed files with 16 additions and 20 deletions
+1 -1
View File
@@ -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):