[Asterisk-code-review] sipp, test suite utils: Default media port to an unused port (testsuite[master])

Corey Farrell asteriskteam at digium.com
Thu Apr 19 06:39:58 CDT 2018


Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/8691 )

Change subject: sipp, test_suite_utils: Default media port to an unused port
......................................................................


Patch Set 5:

(1 comment)

https://gerrit.asterisk.org/#/c/8691/5/lib/python/asterisk/utils_socket.py
File lib/python/asterisk/utils_socket.py:

https://gerrit.asterisk.org/#/c/8691/5/lib/python/asterisk/utils_socket.py@15
PS5, Line 15: import unittest
One more change if you don't mind:

Please create lib/python/asterisk/self_test/utils_socket.py, move the unittest to that file and chmox -x this file.  As part of my python3 compatibility update all unit tests are being moved into that folder - python3 requires that modules use relative imports but forbids relative imports from scripts.  The cleanest way to deal with this is for any module that would be imported to not be executable.  I realize that for this module it doesn't make a difference (it has no relative imports) but I also plan to have jenkins run all unit tests from lib/python/asterisk/self_test/*.py.



-- 
To view, visit https://gerrit.asterisk.org/8691
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3da461123afc30e1f5ca12e65d289eaa42d6de00
Gerrit-Change-Number: 8691
Gerrit-PatchSet: 5
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Thu, 19 Apr 2018 11:39:58 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180419/6ded088a/attachment-0001.html>


More information about the asterisk-code-review mailing list