summaryrefslogtreecommitdiff
path: root/git/test/test_index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-19 18:10:16 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-19 18:10:16 +0100
commitdf95149198744c258ed6856044ac5e79e6b81404 (patch)
treee583207230b9ddfbd170c01d218168ca12fea07b /git/test/test_index.py
parentd5054fdb1766cb035a1186c3cef4a14472fee98d (diff)
downloadgitpython-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.py3
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