view tests/test-encoding.py @ 147:98829bf71f10

util: define BytesIO in one place
author Matt Mackall <mpm@selenic.com>
date Fri, 13 Mar 2015 12:28:06 -0500
parents 4359cabcb0cc
children c1b966866ed7
line wrap: on
line source

import common
import hglib
from hglib.util import b

class test_encoding(common.basetest):
    def test_basic(self):
        self.client = hglib.open(encoding='utf-8')
        self.assertEquals(self.client.encoding, b('utf-8'))