Skip to content

Commit

Permalink
Merge pull request #137 from jessemiller/actually_fix_test
Browse files Browse the repository at this point in the history
make the test of non-ascii filenames actually pass, by marking strings as unicode
I missed the note about how to run the unit tests when submitting this patch, and it turns out the test actually failed. Just needed to mark the appropriate strings as unicode to get it to work.
  • Loading branch information
noelbush-xx committed Jun 10, 2013
2 parents 1dbce73 + eb2e665 commit 8b72bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hamlpy/test/hamlpy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def test_applies_id_properly(self):
self.assertEqual(html, result.replace('\n', ''))

def test_non_ascii_id_allowed(self):
haml = '%div#これはテストです test'
html = "<div id='これはテストです'>test</div>"
haml = u'%div#これはテストです test'
html = u"<div id='これはテストです'>test</div>"
hamlParser = hamlpy.Compiler()
result = hamlParser.process(haml)
self.assertEqual(html, result.replace('\n', ''))
Expand Down

0 comments on commit 8b72bd0

Please sign in to comment.