aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/utils/test_debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/utils/test_debug.py')
-rw-r--r--test/mitmproxy/utils/test_debug.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/mitmproxy/utils/test_debug.py b/test/mitmproxy/utils/test_debug.py
index a8e1054d..0ca6ead0 100644
--- a/test/mitmproxy/utils/test_debug.py
+++ b/test/mitmproxy/utils/test_debug.py
@@ -1,5 +1,4 @@
import io
-import subprocess
import sys
from unittest import mock
import pytest
@@ -14,18 +13,6 @@ def test_dump_system_info_precompiled(precompiled):
assert ("binary" in debug.dump_system_info()) == precompiled
-def test_dump_system_info_version():
- with mock.patch('subprocess.check_output') as m:
- m.return_value = b"v2.0.0-0-cafecafe"
- x = debug.dump_system_info()
- assert 'dev' not in x
- assert 'cafecafe' in x
-
- with mock.patch('subprocess.check_output') as m:
- m.side_effect = subprocess.CalledProcessError(-1, 'git describe --tags --long')
- assert 'dev' not in debug.dump_system_info()
-
-
def test_dump_info():
cs = io.StringIO()
debug.dump_info(None, None, file=cs, testing=True)