From 3d8939d4514484fd65bf6a84fd7304604924e8f3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 29 Oct 2014 07:46:35 +0100 Subject: git.vfs: fix close method Preventing a infinite recursion which can be triggered by gbp pq export --commit. --- tests/test_GitVfs.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_GitVfs.py b/tests/test_GitVfs.py index 7004db1..8e04954 100644 --- a/tests/test_GitVfs.py +++ b/tests/test_GitVfs.py @@ -46,6 +46,7 @@ def test_read(): '' >>> gf.readline() '' + >>> gf.close() >>> gbp.git.vfs.GitVfs(repo, 'HEAD').open('foo.txt').read() == content True >>> gf = vfs.open('doesnotexist') -- cgit v1.2.3