use skip_windows decorator consistently

This commit is contained in:
Maximilian Hils 2018-10-23 15:24:59 +02:00 committed by GitHub
parent bf3570b3b9
commit 28551e9655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"):