Skip to content

Commit

Permalink
Attempt to fix Travis builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
throwanexception authored and cnatter committed Mar 30, 2018
1 parent 75440f3 commit 4ea8ff8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ua_parser/user_agent_parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 4ea8ff8

Please sign in to comment.