diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-07 23:17:13 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-07 23:17:13 +0100 |
commit | 3326f34712f6a96c162033c7ccf370c8b7bc1ead (patch) | |
tree | fef92876567f64d85227311053926fd978ac60bc /test/git/test_index.py | |
parent | f6102b349cbef03667d5715fcfae3161701a472d (diff) | |
download | gitpython-3326f34712f6a96c162033c7ccf370c8b7bc1ead.tar.gz |
index: Checkout exception now contains information about the reason of the failure as well, one per failed file
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r-- | test/git/test_index.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py index 459cfc0e..a2689f99 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -302,6 +302,7 @@ class TestTree(TestBase): index.checkout(test_file) except CheckoutError, e: assert len(e.failed_files) == 1 and e.failed_files[0] == os.path.basename(test_file) + assert (len(e.failed_files) == len(e.failed_reasons)) and isinstance(e.failed_reasons[0], basestring) assert len(e.valid_files) == 0 assert open(test_file).read().endswith(append_data) else: |