From 660573233245ad0b4b2be7d0ac1457ea5316c048 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 22:41:02 +0100 Subject: Convert result to list Python3 returns a dict_items obj --- tests/test_GitRepository.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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'])] """ -- cgit v1.2.3