summaryrefslogtreecommitdiff
path: root/test/git/test_config.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-19 20:17:36 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-19 20:17:36 +0200
commit345d6be7829c6dab359390ebc5e1a7ae0c6d48bb (patch)
tree6e02234e28ff3cdcc00bc46b51928ca65dae0e61 /test/git/test_config.py
parent048acc4596dc1c6d7ed3220807b827056cb01032 (diff)
downloadgitpython-345d6be7829c6dab359390ebc5e1a7ae0c6d48bb.tar.gz
config: fixed serious issues that would cause it to see initial tabs as continuation lines - this leads to very incorrect results when parsing git config files. Now the complete reading is overridden to make it work as there was no other way
Diffstat (limited to 'test/git/test_config.py')
-rw-r--r--test/git/test_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/git/test_config.py b/test/git/test_config.py
index c5a8dc2c..843da723 100644
--- a/test/git/test_config.py
+++ b/test/git/test_config.py
@@ -77,6 +77,8 @@ class TestBase(TestCase):
num_options += 1
val = r_config.get(section, option)
assert val
+ assert "\n" not in option
+ assert "\n" not in val
# writing must fail
self.failUnlessRaises(IOError, r_config.set, section, option, None)