Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a25f50 + 164d200 commit 3feaa5dCopy full SHA for 3feaa5d
lib/matplotlib/tests/test_backend_tk.py
@@ -53,11 +53,14 @@ def test_func():
53
+ str(e.stderr))
54
else:
55
# macOS may actually emit irrelevant errors about Accelerated
56
- # OpenGL vs. software OpenGL, so suppress them.
+ # OpenGL vs. software OpenGL, or some permission error on Azure, so
57
+ # suppress them.
58
# Asserting stderr first (and printing it on failure) should be
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"]
62
assert not [line for line in proc.stderr.splitlines()
- if "OpenGL" not in line]
63
+ if all(msg not in line for msg in ignored_lines)]
64
assert proc.stdout.count("success") == success_count
65
66
return test_func
0 commit comments