From 7386352cddacc114c388cc098581fd8fcbff76ef Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 13 Jul 2019 19:33:51 -0400 Subject: tests/test_lps_gen.py: Update TestTemplates. * tests/test_lps_gen.py (TestTemplates.test_read): Suppress output to stderr. --- tests/test_lps_gen.py | 5 +++-- 1 file 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): -- cgit v1.2.3