@@ -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
@@ -28,7 +29,9 @@ class StandaloneSearx(SearxTestCase):
2829 sas = get_standalone_searx_module()
2930 with patch.object(sys, 'argv', ['standalone_searx']), \
3031 self.assertRaises(SystemExit):
32+ sys.stderr = io.StringIO()
3133 sas.parse_argument()
34+ sys.stdout = sys.__stderr__
3235
3336 def test_parse_argument_basic_args(self):
3437 """Test parse argument with basic args."""