diff options
author | rsiddharth <rsd@gnu.org> | 2019-07-13 19:33:51 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2019-07-13 19:33:51 -0400 |
commit | 7386352cddacc114c388cc098581fd8fcbff76ef (patch) | |
tree | dbc5aa76f675bfb1f1b77bca0a79fbb300127e83 | |
parent | 73ccb20703f86d968cbcf617eb0eafa3e89c6b92 (diff) |
tests/test_lps_gen.py: Update TestTemplates.
* tests/test_lps_gen.py (TestTemplates.test_read): Suppress output to
stderr.
-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): |