aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFred Miller <fghzxm@outlook.com>2018-10-23 08:28:09 +0800
committerFred Miller <fghzxm@outlook.com>2018-10-23 08:53:51 +0800
commitbf3570b3b987c27701df65753666a83b52ba8752 (patch)
tree7e91498907ac184dc1f44cfb2d458e2e1f24a97a /test
parentf16621a38b17d53c76600c12d67031544c055d74 (diff)
downloadmitmproxy-bf3570b3b987c27701df65753666a83b52ba8752.tar.gz
mitmproxy-bf3570b3b987c27701df65753666a83b52ba8752.tar.bz2
mitmproxy-bf3570b3b987c27701df65753666a83b52ba8752.zip
Skip file permission test on Windows
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_certs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mitmproxy/test_certs.py b/test/mitmproxy/test_certs.py
index 82b9cdbb..884927cb 100644
--- a/test/mitmproxy/test_certs.py
+++ b/test/mitmproxy/test_certs.py
@@ -1,4 +1,6 @@
import os
+import sys
+import pytest
from mitmproxy import certs
# class TestDNTree:
@@ -111,6 +113,8 @@ class TestCertStore:
certs.CertStore.load_dhparam(filename)
assert os.path.exists(filename)
+ @pytest.mark.skipif(sys.platform in ["win32", "cygwin"],
+ reason="Unix file permissions are not applicable on Windows")
def test_umask_secret(self, tmpdir):
filename = str(tmpdir.join("secret"))
with certs.CertStore.umask_secret(), open(filename, "wb"):