fix all typing error in tests

This commit is contained in:
Jörg Thalheim
2024-08-21 18:58:16 +02:00
parent a482829fef
commit f3a2b4d80e
4 changed files with 12 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ class CaptureOutput:
self.capsys.readouterr()
return self
def __exit__(self, exc_type: Any, exc_value: Any, exc_traceback: Any) -> bool:
def __exit__(self, exc_type: Any, exc_value: Any, exc_traceback: Any) -> None:
res = self.capsys.readouterr()
self.out = res.out
self.err = res.err
@@ -23,7 +23,6 @@ class CaptureOutput:
# Disable capsys again
self.capsys_disabled = self.capsys.disabled()
self.capsys_disabled.__enter__()
return False
@pytest.fixture