Merge ~ahasenack/qa-regression-testing:postfix-py3-fixes into qa-regression-testing:master
Status: | Merged |
---|---|
Merged at revision: | 96c5e011c102a82e302de80566bf306f184be75b |
Proposed branch: | ~ahasenack/qa-regression-testing:postfix-py3-fixes |
Merge into: | qa-regression-testing:master |
Diff against target: |
113 lines (+21/-17) 1 file modified
scripts/test-postfix.py (+21/-17) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Beattie | Approve | ||
Review via email:
|
Description of the change
Remaining py3 fixes. I didn't change any defaults or package dependencies, i.e., if just following the README instructions, py2 will still be used.
I was also getting a lot of warnings about files left open, so I took a stab at that too.
In eoan:
$ sudo python3 ./test-postfix.py
...............
-------
Ran 15 tests in 62.400s
OK
$ sudo python2 ./test-postfix.py
...............
-------
Ran 15 tests in 63.094s
OK
I also checked xenial:
$ sudo python3 ./test-postfix.py
...............
-------
Ran 15 tests in 62.069s
OK
$ apt-cache policy python3
python3:
Installed: 3.5.1-3
Candidate: 3.5.1-3
Version table:
*** 3.5.1-3 500
500 http://
100 /var/lib/
Looks good to me. Thanks for fixing the open file descriptor issues (ugh).
With your fixes, I verified that the tests continue to succeed on trusty and precise (ESM releases). Both worked under python2 and trusty did for python3; precise is missing a python3-pexpect package. That's not a blocker for merging this PR, but it complicates our plan to move to python3 by default for qrt scripts.
Thanks.