Skip to content

Commit

Permalink
Prefer utf-8 source encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Feb 16, 2015
1 parent 649fb0c commit a8cc0e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/airspeed_test.py
@@ -1,4 +1,4 @@
# -*- coding: latin-1 -*-
# -*- coding: utf-8 -*-

import re
from unittest import TestCase
Expand Down Expand Up @@ -885,7 +885,7 @@ def method(self, p):

def test_preserves_unicode_strings(self):
template = airspeed.Template('$value')
value = u'Grüße'
value = u'Grüße'
self.assertEquals(value, template.merge(locals()))

def test_preserves_unicode_strings_objects(self):
Expand All @@ -897,7 +897,7 @@ def __init__(self, value):

def __str__(self):
return self.value
value = Clazz(u'£12,000')
value = Clazz(u'£12,000')
self.assertEquals(six.text_type(value), template.merge(locals()))

def test_can_define_macros_in_parsed_files(self):
Expand Down

0 comments on commit a8cc0e4

Please sign in to comment.