Skip to content

Commit

Permalink
Fix unicode string errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Jul 24, 2018
1 parent f772ad7 commit db6dca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test the tools module."""

from __future__ import absolute_import
from __future__ import unicode_literals

from .check import Check

Expand All @@ -18,7 +19,7 @@ def setUp(self):
This is also a no-good sentence.
"""
self.text_with_no_newline = """A very bad sentence."""
self.text_with_no_newline = u"A very bad sentence."""

def extract_line_col(self, error):
"""Extract the line and column number from an error tuple."""
Expand Down

0 comments on commit db6dca1

Please sign in to comment.