diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-19 18:10:16 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-19 18:10:16 +0100 |
commit | df95149198744c258ed6856044ac5e79e6b81404 (patch) | |
tree | e583207230b9ddfbd170c01d218168ca12fea07b /git/test/test_index.py | |
parent | d5054fdb1766cb035a1186c3cef4a14472fee98d (diff) | |
download | gitpython-df95149198744c258ed6856044ac5e79e6b81404.tar.gz |
Improved unicode handling when using os.environ or GitConfigParser
Assured unicode values are supported when reading the configuration,
and when getting author/committer information from the environment.
Fixes #237
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r-- | git/test/test_index.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index 2be776cd..0569f40f 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -381,12 +381,13 @@ class TestIndex(TestBase): num_entries = len(index.entries) cur_head = rw_repo.head - uname = "Some Developer" + uname = u"Thomas Müller" umail = "sd@company.com" writer = rw_repo.config_writer() writer.set_value("user", "name", uname) writer.set_value("user", "email", umail) writer.release() + assert writer.get_value("user", "name") == uname # remove all of the files, provide a wild mix of paths, BaseIndexEntries, # IndexEntries |