Tests: Fixed test harness for Python 3.x.
- Thanks to jrabbit.
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -133,6 +133,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
|||||||
Ran Benita
|
Ran Benita
|
||||||
Vladimir
|
Vladimir
|
||||||
Zachary Manning
|
Zachary Manning
|
||||||
|
jrabbit
|
||||||
|
|
||||||
Thanks to the following, who submitted detailed bug reports and excellent
|
Thanks to the following, who submitted detailed bug reports and excellent
|
||||||
suggestions:
|
suggestions:
|
||||||
|
|||||||
@@ -45,6 +45,8 @@
|
|||||||
- Deprecated use of alternate Boolean configuration settings. Use values "0" for
|
- Deprecated use of alternate Boolean configuration settings. Use values "0" for
|
||||||
off, and "1" for on. Avoid used of "on", "off", "true", "t", "false", "f",
|
off, and "1" for on. Avoid used of "on", "off", "true", "t", "false", "f",
|
||||||
"yes", "y", "no", "n".
|
"yes", "y", "no", "n".
|
||||||
|
- Fixed test harness for Python 3.x.
|
||||||
|
(thanks to jrabbit).
|
||||||
|
|
||||||
2.5.1 (2016-02-24) 8b4ae3b54b44dfbd00b96cdd6dceb8dfe7cc1ea0
|
2.5.1 (2016-02-24) 8b4ae3b54b44dfbd00b96cdd6dceb8dfe7cc1ea0
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,10 @@ def run_test(testqueue, outqueue, threadname):
|
|||||||
class TestRunner(object):
|
class TestRunner(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.threads = []
|
self.threads = []
|
||||||
self.tap = open(cmd_args.tapfile, 'w')
|
if sys.version_info > (3,):
|
||||||
|
self.tap = open(cmd_args.tapfile, 'w', errors='ignore')
|
||||||
|
else:
|
||||||
|
self.tap = open(cmd_args.tapfile, 'w')
|
||||||
|
|
||||||
self._parallelq = Queue()
|
self._parallelq = Queue()
|
||||||
self._serialq = Queue()
|
self._serialq = Queue()
|
||||||
|
|||||||
Reference in New Issue
Block a user