File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,14 @@ def test_func():
53
53
+ str (e .stderr ))
54
54
else :
55
55
# macOS may actually emit irrelevant errors about Accelerated
56
- # OpenGL vs. software OpenGL, so suppress them.
56
+ # OpenGL vs. software OpenGL, or some permission error on Azure, so
57
+ # suppress them.
57
58
# Asserting stderr first (and printing it on failure) should be
58
59
# more helpful for debugging that printing a failed success count.
60
+ ignored_lines = ["OpenGL" , "CFMessagePort: bootstrap_register" ,
61
+ "/usr/include/servers/bootstrap_defs.h" ]
59
62
assert not [line for line in proc .stderr .splitlines ()
60
- if "OpenGL" not in line ]
63
+ if all ( msg not in line for msg in ignored_lines ) ]
61
64
assert proc .stdout .count ("success" ) == success_count
62
65
63
66
return test_func
You can’t perform that action at this time.
0 commit comments