summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 22:40:31 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-21 11:44:37 +0100
commit7ee9e0c0b6838d63d4ac3751016ebe83ff290218 (patch)
tree204cca511bc6f111d5877d5da092a1c01a9cb2fc
parent2b8344e6e6d95e5db9a4237df0a3956316af137e (diff)
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.
-rw-r--r--tests/test_GitRepository.py12
1 files changed, 6 insertions, 6 deletions
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(<type 'list'>, {'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(<type 'list'>, {})
- >>> repo.diff_status("HEAD~1", "HEAD")
- defaultdict(<type 'list'>, {'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():