--- test/mitmproxy/test_version.py.old 2020-08-02 12:01:29.000000000 +0200 +++ test/mitmproxy/test_version.py 2020-08-02 12:00:02.000000000 +0200 @@ -20,6 +20,7 @@ version.VERSION = "3.0.0rc2" with mock.patch('subprocess.check_output') as m: + with mock.patch('subprocess.run') as do_not_fail: m.return_value = b"tag-0-cafecafe" assert version.get_dev_version() == "3.0.0rc2"