mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Skip file permission test on Windows
This commit is contained in:
parent
f16621a38b
commit
bf3570b3b9
@ -1,4 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
import pytest
|
||||||
from mitmproxy import certs
|
from mitmproxy import certs
|
||||||
|
|
||||||
# class TestDNTree:
|
# class TestDNTree:
|
||||||
@ -111,6 +113,8 @@ class TestCertStore:
|
|||||||
certs.CertStore.load_dhparam(filename)
|
certs.CertStore.load_dhparam(filename)
|
||||||
assert os.path.exists(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):
|
def test_umask_secret(self, tmpdir):
|
||||||
filename = str(tmpdir.join("secret"))
|
filename = str(tmpdir.join("secret"))
|
||||||
with certs.CertStore.umask_secret(), open(filename, "wb"):
|
with certs.CertStore.umask_secret(), open(filename, "wb"):
|
||||||
|
Loading…
Reference in New Issue
Block a user