From fe69918f441176fcc989e939e25083d9d252edb3 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Wed, 14 Apr 2021 19:21:29 +0200 Subject: [PATCH] TST Don't test stderr in JSON tests --- tests/json.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/json.t b/tests/json.t index b90cd30..17d7e4d 100755 --- a/tests/json.t +++ b/tests/json.t @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os +import sys import unittest from simpletap.fdecrypt import lib @@ -29,21 +30,21 @@ class TestJSON(unittest.TestCase): test = os.path.join(self.test, "test_profile_firefox_20") cmd = lib.get_script() + [test, "--format", "json"] - output = lib.run(cmd, stdin=self.pwd, stderr=None) + output = lib.run(cmd, stdin=self.pwd, stderr=sys.stderr) self.validate_default(output) def test_firefox_46_default(self): test = os.path.join(self.test, "test_profile_firefox_46") cmd = lib.get_script() + [test, "--format", "json"] - output = lib.run(cmd, stdin=self.pwd, stderr=None) + output = lib.run(cmd, stdin=self.pwd, stderr=sys.stderr) self.validate_default(output) def test_firefox_nopassword_default(self): test = os.path.join(self.test, "test_profile_firefox_nopassword") cmd = lib.get_script() + [test, "-n", "--format", "json"] - output = lib.run(cmd, stderr=None) + output = lib.run(cmd, stderr=sys.stderr) self.validate_default(output)