@@ -2,6 +2,7 @@
22"""Test utils/standalone_searx.py"""
33import datetime
44import importlib.util
5+import io
56import sys
67
78from mock import Mock, patch
@@ -29,7 +30,9 @@ class StandaloneSearx(SearxTestCase):
2930 sas = get_standalone_searx_module()
3031 with patch.object(sys, 'argv', ['standalone_searx']), \
3132 self.assertRaises(SystemExit):
33+ sys.stderr = io.StringIO()
3234 sas.parse_argument()
35+ sys.stdout = sys.__stderr__
3336
3437 def test_parse_argument_basic_args(self):
3538 """Test parse argument with basic args."""