diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-19 15:03:44 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-19 15:03:44 +0200 |
commit | 26029c29765043376370a2877b7e635c17f5e76d (patch) | |
tree | 1a0ce488e628df94f61048e1e9c691c59a83e867 /test/git/test_repo.py | |
parent | 3fd37230e76a014cf5c45d55daf0be2caa6948b7 (diff) | |
download | gitpython-26029c29765043376370a2877b7e635c17f5e76d.tar.gz |
added additional testing for the configuration, concurrent access and config reading, all tests work
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 843a4b4e..0d8a473d 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -228,6 +228,11 @@ class TestRepo(TestCase): def test_config_writer(self): for config_level in self.repo.config_level: - writer = self.repo.config_writer(config_level) - assert not writer.read_only + try: + writer = self.repo.config_writer(config_level) + assert not writer.read_only + except IOError: + # its okay not to get a writer for some configuration files if we + # have no permissions + pass # END for each config level |