Skip to content

Commit

Permalink
Python 3.2 unicode support
Browse files Browse the repository at this point in the history
  • Loading branch information
sirex committed Jan 4, 2016
1 parent 6c4dc94 commit 903b037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_pytest_catchlog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# coding: utf-8

import py
import six

pytest_plugins = 'pytester'

Expand Down Expand Up @@ -162,7 +163,7 @@ def test_foo(caplog):


def test_unicode(testdir):
testdir.makepyfile(u'''
testdir.makepyfile(six.u('''
# coding: utf-8
import sys
Expand All @@ -174,7 +175,7 @@ def test_foo(caplog):
assert caplog.records[0].levelname == 'INFO'
assert caplog.records[0].msg == six.u('bū')
assert six.u('bū') in caplog.text
''')
'''))
result = testdir.runpytest()
assert result.ret == 0

Expand Down

0 comments on commit 903b037

Please sign in to comment.