Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0614c24

Browse files
committed
Fix test error on Python 3.2
1 parent 159db97 commit 0614c24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ua_parser/user_agent_parser_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ def testParseAll(self):
9292
}
9393

9494
result = user_agent_parser.Parse(user_agent_string)
95-
self.assertEqual(result, expected,
96-
u"UA: {0}\n expected<{1}> != actual<{2}>".format(user_agent_string, expected, result))
95+
self.assertEqual(
96+
result, expected,
97+
u"UA: %s\n expected<%s> != actual<%s>"% (user_agent_string, expected, result)
98+
)
9799

98100
# Make a YAML file for manual comparsion with pgts_browser_list-orig.yaml
99101
def makePGTSComparisonYAML(self):

0 commit comments

Comments
 (0)