mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Skip file permission test on Windows
This commit is contained in:
parent
f16621a38b
commit
bf3570b3b9
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user