diff options
-rw-r--r-- | tests/test_lps_gen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py index 9551e18..ba289d4 100644 --- a/tests/test_lps_gen.py +++ b/tests/test_lps_gen.py @@ -113,8 +113,9 @@ class TestTemplates(object): assert type(t) is str assert len(t) > 0 - t = template_read('nonexistent') - assert t is None + with mock.patch('sys.stderr', new_callable=StringIO) as out: + t = template_read('nonexistent') + assert t is None class TestLPiCal(object): |