summaryrefslogtreecommitdiff
path: root/tests/test_GitRepository.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r--tests/test_GitRepository.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 4e34401..0da7c2f 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -890,16 +890,16 @@ def test_status():
>>> repo = gbp.git.GitRepository(repo_dir)
>>> fname = os.path.join(repo.path, "test_status")
>>> ret = shutil.copy(os.path.join(repo.path, ".git/HEAD"), fname)
- >>> repo.status().items()
+ >>> list(repo.status().items())
[('??', ['test_status'])]
- >>> repo.status(['bla*']).items()
+ >>> list(repo.status(['bla*']).items())
[]
- >>> repo.status(['te*']).items()
+ >>> list(repo.status(['te*']).items())
[('??', ['test_status'])]
>>> repo.add_files(repo.path, force=True)
>>> repo.commit_all(msg='added %s' % fname)
>>> _ = repo._git_inout('mv', [fname, fname + 'new'])
- >>> repo.status().items()
+ >>> list(repo.status().items())
[('R ', ['test_status\x00test_statusnew'])]
"""