From 7ee9e0c0b6838d63d4ac3751016ebe83ff290218 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 22:40:31 +0100 Subject: Ignore first part of type output Types are classes in python3 so we get 'class' instead of 'type'. Ignore that detail in the matcher since it's not relevanthere. --- tests/test_GitRepository.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 0da7c2f..957c607 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -468,8 +468,8 @@ def test_get_commit_info(): True >>> info['patchname'] 'foo' - >>> info['files'] - defaultdict(, {'M': ['testfile']}) + >>> info['files'] # doctest:+ELLIPSIS + defaultdict(<... 'list'>, {'M': ['testfile']}) >>> repo.get_subject('HEAD') 'foo' """ @@ -500,10 +500,10 @@ def test_diff_status(): >>> import gbp.git >>> repo = gbp.git.GitRepository(repo_dir) - >>> repo.diff_status("HEAD", "HEAD") - defaultdict(, {}) - >>> repo.diff_status("HEAD~1", "HEAD") - defaultdict(, {'M': ['testfile']}) + >>> repo.diff_status("HEAD", "HEAD") # doctest:+ELLIPSIS + defaultdict(<... 'list'>, {}) + >>> repo.diff_status("HEAD~1", "HEAD") # doctest:+ELLIPSIS + defaultdict(<... 'list'>, {'M': ['testfile']}) """ def test_mirror_clone(): -- cgit v1.2.3