Skip to content

Commit 7d69c8c

Browse files
committed
Fix unit tests
1 parent fd8ea5b commit 7d69c8c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

unittests/main_test.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_main(self):
127127
# Test initialization of CEF
128128
settings = {
129129
"debug": False,
130-
"log_severity": cef.LOGSEVERITY_WARNING,
130+
"log_severity": cef.LOGSEVERITY_ERROR,
131131
"log_file": "",
132132
}
133133
if "--debug" in sys.argv:
@@ -150,15 +150,14 @@ def test_main(self):
150150
elif MAC:
151151
certrevoc_dir = r"/Users/*/Library/Application Support/Google" \
152152
r"/Chrome/CertificateRevocation"
153-
if os.path.exists(certrevoc_dir):
154-
crlset_files = glob.iglob(os.path.join(certrevoc_dir, "*",
155-
"crl-set"))
156-
crlset = ""
157-
for crlset in crlset_files:
158-
pass
159-
if os.path.exists(crlset):
160-
cef.LoadCrlSetsFile(crlset)
161-
subtest_message("cef.LoadCrlSetsFile ok")
153+
crlset_files = glob.iglob(os.path.join(certrevoc_dir, "*",
154+
"crl-set"))
155+
crlset = ""
156+
for crlset in crlset_files:
157+
pass
158+
if os.path.exists(crlset):
159+
cef.LoadCrlSetsFile(crlset)
160+
subtest_message("cef.LoadCrlSetsFile ok")
162161

163162
# High DPI on Windows
164163
if WINDOWS:

0 commit comments

Comments
 (0)