From 6a18bd3ec231ff18145dcfcd644ccbac502a01c4 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Mon, 2 Jul 2018 21:12:59 +0200 Subject: [PATCH] Add missing self to TestCase.addCleanup() (#2301) --- stdlib/2/unittest.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/unittest.pyi b/stdlib/2/unittest.pyi index 8e8665034..ee7bead39 100644 --- a/stdlib/2/unittest.pyi +++ b/stdlib/2/unittest.pyi @@ -164,7 +164,7 @@ class TestCase(Testable): def defaultTestResult(self) -> TestResult: ... def id(self) -> str: ... def shortDescription(self) -> str: ... # May return None - def addCleanup(function: Any, *args: Any, **kwargs: Any) -> None: ... + def addCleanup(self, function: Any, *args: Any, **kwargs: Any) -> None: ... def doCleanups(self) -> bool: ... def skipTest(self, reason: Any) -> None: ...