view tests/test-encoding.py @ 192:7a84a8656679

client: do not append an option to a list of arguments It wouldn't work if args are terminated with "--".
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Nov 2017 20:21:26 +0900
parents c1b966866ed7
children
line wrap: on
line source

from tests 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'))