aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-10-23 15:24:59 +0200
committerGitHub <noreply@github.com>2018-10-23 15:24:59 +0200
commit28551e96552bc3077d772f8459ddb74e9c0f5253 (patch)
tree0c582ebdf9970941bb06516f8cd712ff15228474 /test
parentbf3570b3b987c27701df65753666a83b52ba8752 (diff)
downloadmitmproxy-28551e96552bc3077d772f8459ddb74e9c0f5253.tar.gz
mitmproxy-28551e96552bc3077d772f8459ddb74e9c0f5253.tar.bz2
mitmproxy-28551e96552bc3077d772f8459ddb74e9c0f5253.zip
use skip_windows decorator consistently
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_certs.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/mitmproxy/test_certs.py b/test/mitmproxy/test_certs.py
index 884927cb..8421ec58 100644
--- a/test/mitmproxy/test_certs.py
+++ b/test/mitmproxy/test_certs.py
@@ -1,7 +1,6 @@
import os
-import sys
-import pytest
from mitmproxy import certs
+from ..conftest import skip_windows
# class TestDNTree:
# def test_simple(self):
@@ -113,8 +112,7 @@ 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")
+ @skip_windows
def test_umask_secret(self, tmpdir):
filename = str(tmpdir.join("secret"))
with certs.CertStore.umask_secret(), open(filename, "wb"):