From cabe14d41d5fba53a5639d21aed2e6c1541397d0 Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Mon, 15 Jun 2020 10:45:08 +0200 Subject: [PATCH] tests-ListUsers: Remove useless printing to dev/null Which again allows me to actually debug with print statements. Dont know which dragon ride gave me the desillusional idea to actually do it that way --- private/test/test_ListUsers.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/private/test/test_ListUsers.py b/private/test/test_ListUsers.py index 667c45d..27a158a 100644 --- a/private/test/test_ListUsers.py +++ b/private/test/test_ListUsers.py @@ -5,9 +5,6 @@ import os from lib.ListUsers import ListUsers sys.path.append('..') -f = open(os.devnull, 'w') -sys.stdout = f - class TestListUsers(unittest.TestCase): def setUp(self) -> None: @@ -23,7 +20,6 @@ class TestListUsers(unittest.TestCase): "Newlines in OUTPUT doesn't exceed minimum of at least " f"{testcfg.ListUsers_output_newlines} " "lines!") - print(out) def test_pretty_print(self): # wont going to compare the stdout sorry very much @@ -36,7 +32,7 @@ class TestListUsers(unittest.TestCase): testcfg.ListUsers_fetch_size_min, "fetch is NOT greater than" "the configured fetch minimum") try: - print(fetch[0]) + fetch[0] except (KeyError, IOError) as suddenly_not_there: self.fail(f"Expected fetch to have at least one argument! {suddenly_not_there}")