From b3ef553f4f30614b97e23f2d4ad6d6576ec57adf Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 27 Jan 2022 13:42:09 -0800 Subject: Adding test code trying to improve test coverage. --- unittest_utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittest_utils.py') diff --git a/unittest_utils.py b/unittest_utils.py index f4fed35..e84b4eb 100644 --- a/unittest_utils.py +++ b/unittest_utils.py @@ -275,6 +275,7 @@ class RecordStdout(object): ... print("This is a test!") >>> print({record().readline()}) {'This is a test!\\n'} + >>> record().close() """ def __init__(self) -> None: @@ -301,6 +302,7 @@ class RecordStderr(object): ... print("This is a test!", file=sys.stderr) >>> print({record().readline()}) {'This is a test!\\n'} + >>> record().close() """ def __init__(self) -> None: -- cgit v1.3