diff --git a/ua_parser/user_agent_parser_test.py b/ua_parser/user_agent_parser_test.py index 6eefe70..2c97721 100644 --- a/ua_parser/user_agent_parser_test.py +++ b/ua_parser/user_agent_parser_test.py @@ -131,6 +131,11 @@ def runUserAgentTestsFromYAML(self, file_name): yamlContents = yaml.load(yamlFile) yamlFile.close() + import codecs + import sys + UTF8Writer = codecs.getwriter('utf8') + sys.stdout = UTF8Writer(sys.stdout) + for test_case in yamlContents['test_cases']: # Inputs to Parse() user_agent_string = test_case['user_agent_string']