mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Set sys.stdout as utf8
This commit is contained in:
parent
973cb8a718
commit
f21568ae4c
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,9 @@ from multiprocessing import cpu_count
|
|||
from threading import Thread
|
||||
from subprocess import call, Popen, PIPE
|
||||
|
||||
if sys.version_info > (3,):
|
||||
import codecs
|
||||
|
||||
try:
|
||||
# python 2
|
||||
from Queue import Queue, Empty
|
||||
|
@ -200,6 +203,9 @@ def parse_args():
|
|||
|
||||
|
||||
def main():
|
||||
if sys.version_info > (3,):
|
||||
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
|
||||
|
||||
runner = TestRunner()
|
||||
runner.start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue