mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Fixed test harness for Python 3.x.
- Thanks to jrabbit.
This commit is contained in:
parent
54c0717cdb
commit
973cb8a718
3 changed files with 7 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -133,6 +133,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
|||
Ran Benita
|
||||
Vladimir
|
||||
Zachary Manning
|
||||
jrabbit
|
||||
|
||||
Thanks to the following, who submitted detailed bug reports and excellent
|
||||
suggestions:
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
- 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",
|
||||
"yes", "y", "no", "n".
|
||||
- Fixed test harness for Python 3.x.
|
||||
(thanks to jrabbit).
|
||||
|
||||
------ current release ---------------------------
|
||||
|
||||
|
|
|
@ -60,6 +60,9 @@ def run_test(testqueue, outqueue, threadname):
|
|||
class TestRunner(object):
|
||||
def __init__(self):
|
||||
self.threads = []
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue