Mercurial > public > mercurial-scm > python-hglib
comparison tests/test-encoding.py @ 143:4359cabcb0cc
hglib: move string literals in the test code to util.b() (issue4520)
author | Brett Cannon <brett@python.org> |
---|---|
date | Mon, 09 Mar 2015 18:26:25 -0400 |
parents | eac8be119d81 |
children | c1b966866ed7 |
comparison
equal
deleted
inserted
replaced
142:fe74d5599539 | 143:4359cabcb0cc |
---|---|
1 import common | 1 import common |
2 import hglib | 2 import hglib |
3 from hglib.util import b | |
3 | 4 |
4 class test_encoding(common.basetest): | 5 class test_encoding(common.basetest): |
5 def test_basic(self): | 6 def test_basic(self): |
6 self.client = hglib.open(encoding='utf-8') | 7 self.client = hglib.open(encoding='utf-8') |
7 self.assertEquals(self.client.encoding, 'utf-8') | 8 self.assertEquals(self.client.encoding, b('utf-8')) |