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