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
992b41b82a
commit
b323069419
3 changed files with 7 additions and 1 deletions
|
@ -60,7 +60,10 @@ def run_test(testqueue, outqueue, threadname):
|
|||
class TestRunner(object):
|
||||
def __init__(self):
|
||||
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._serialq = Queue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue