<p>Friendly Automation <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/11330">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Kevin Harwell: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Remove YAMLLoadWarning: calling yaml.load() (II)<br><br>As commit cac597f96670b994727f6fe98f17c70eefa5f635 remove use of plan<br>for yaml.load without Loader deprecated from PyYAML 5.1<br><br>Change-Id: Ie29b2709c6110a721dc93a824a9ae4bc2adc0d46<br>---<br>M lib/python/asterisk/test_runner.py<br>M usage.py<br>2 files changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/lib/python/asterisk/test_runner.py b/lib/python/asterisk/test_runner.py</span><br><span>index d278e02..443b712 100644</span><br><span>--- a/lib/python/asterisk/test_runner.py</span><br><span>+++ b/lib/python/asterisk/test_runner.py</span><br><span>@@ -233,7 +233,7 @@</span><br><span> return test_config</span><br><span> </span><br><span> with open(test_config_path) as file_stream:</span><br><span style="color: hsl(0, 100%, 40%);">- test_config = yaml.load(file_stream, )</span><br><span style="color: hsl(120, 100%, 40%);">+ test_config = yaml.load(file_stream, Loader=yaml.SafeLoader)</span><br><span> </span><br><span> return test_config</span><br><span> </span><br><span>diff --git a/usage.py b/usage.py</span><br><span>index 9e7c33f..5b12bdd 100755</span><br><span>--- a/usage.py</span><br><span>+++ b/usage.py</span><br><span>@@ -101,7 +101,7 @@</span><br><span> print("Unexpected error: %s" % sys.exc_info()[0])</span><br><span> return None</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- config = yaml.load(f)</span><br><span style="color: hsl(120, 100%, 40%);">+ config = yaml.load(f, Loader=yaml.SafeLoader)</span><br><span> f.close()</span><br><span> </span><br><span> return config</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/11330">change 11330</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/testsuite/+/11330"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie29b2709c6110a721dc93a824a9ae4bc2adc0d46 </div>
<div style="display:none"> Gerrit-Change-Number: 11330 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Rodrigo Ramirez Norambuena <a@rodrigoramirez.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>