From 3326f34712f6a96c162033c7ccf370c8b7bc1ead Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 7 Dec 2009 23:17:13 +0100 Subject: index: Checkout exception now contains information about the reason of the failure as well, one per failed file --- test/git/test_index.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/git/test_index.py') 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: -- cgit v1.2.3