@@ -25,21 +25,32 @@ def set_warnings():
25
25
warnings .simplefilter ("default" )
26
26
warnings .simplefilter ("once" , DeprecationWarning )
27
27
28
- # A warning to suppress:
28
+ # Warnings to suppress:
29
+ # How come these warnings are successfully suppressed here, but not in setup.cfg??
30
+
29
31
# setuptools/py33compat.py:54: DeprecationWarning: The value of convert_charrefs will become
30
32
# True in 3.5. You are encouraged to set the value explicitly.
31
33
# unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
32
- # How come this warning is successfully suppressed here, but not in setup.cfg??
33
34
warnings .filterwarnings (
34
35
"ignore" ,
35
36
category = DeprecationWarning ,
36
- message = "The value of convert_charrefs will become True in 3.5." ,
37
+ message = r "The value of convert_charrefs will become True in 3.5." ,
37
38
)
39
+
38
40
warnings .filterwarnings (
39
41
"ignore" ,
40
42
category = DeprecationWarning ,
41
- message = ".* instead of inspect.getfullargspec" ,
43
+ message = r ".* instead of inspect.getfullargspec" ,
42
44
)
45
+
46
+ # <frozen importlib._bootstrap>:681:
47
+ # ImportWarning: VendorImporter.exec_module() not found; falling back to load_module()
48
+ warnings .filterwarnings (
49
+ "ignore" ,
50
+ category = ImportWarning ,
51
+ message = r".*exec_module\(\) not found; falling back to load_module\(\)" ,
52
+ )
53
+
43
54
if env .PYPY3 :
44
55
# pypy3 warns about unclosed files a lot.
45
56
warnings .filterwarnings ("ignore" , r".*unclosed file" , category = ResourceWarning )
0 commit comments