Commit 0a0dc6d1 authored by Jérome Perrin's avatar Jérome Perrin

runUnitTest: ignore CMFActivity's warnings about node-id in zope.conf

In runUnitTest environment this is not set up.
parent a63b9709
...@@ -501,6 +501,10 @@ def setupWarnings(): ...@@ -501,6 +501,10 @@ def setupWarnings():
if not sys.warnoptions: if not sys.warnoptions:
warnings.simplefilter("default") warnings.simplefilter("default")
os.environ["PYTHONWARNINGS"] = "default" os.environ["PYTHONWARNINGS"] = "default"
warnings.filterwarnings(
'ignore',
message='(?s)Node name auto-generation is deprecated.*product-config CMFActivity.*'
)
def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None): def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment