diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 22:41:02 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:59:05 +0100 |
commit | 660573233245ad0b4b2be7d0ac1457ea5316c048 (patch) | |
tree | 56ba288b4b187e21f72cba0adb7cf20e9b702f29 | |
parent | baaafab5a445ae7170b0308573616d52651479e8 (diff) |
Convert result to list
Python3 returns a dict_items obj
-rw-r--r-- | tests/test_GitRepository.py | 8 |
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'])] """ |