diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/doctests/test_GitVfs.py | 4 | ||||
-rw-r--r-- | tests/doctests/test_PristineTar.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/doctests/test_GitVfs.py b/tests/doctests/test_GitVfs.py index 16501e49..4c498667 100644 --- a/tests/doctests/test_GitVfs.py +++ b/tests/doctests/test_GitVfs.py @@ -53,7 +53,7 @@ def test_read(): >>> gf.close() >>> gbp.git.vfs.GitVfs(repo, 'HEAD').open('foo.txt').read() == content.decode() True - >>> gf = vfs.open('doesnotexist') + >>> gf = vfs.open('doesnotexist') # doctest:+IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... OSError: can't get HEAD:doesnotexist: fatal: Path 'doesnotexist' does not exist in 'HEAD' @@ -91,7 +91,7 @@ def test_binary_read(): >>> gf.close() >>> gbp.git.vfs.GitVfs(repo, 'HEAD').open('foo.txt', 'rb').read() == content True - >>> gf = vfs.open('doesnotexist') + >>> gf = vfs.open('doesnotexist') # doctest:+IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... OSError: can't get HEAD:doesnotexist: fatal: Path 'doesnotexist' does not exist in 'HEAD' diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index dfeb7193..9e8f6336 100644 --- a/tests/doctests/test_PristineTar.py +++ b/tests/doctests/test_PristineTar.py @@ -209,7 +209,7 @@ def test_pristine_tar_checkout_nonexistent(): >>> repo = gbp.deb.git.DebianGitRepository(dirs['repo']) >>> _gbp_log_err_bak = gbp.log.err >>> gbp.log.err = lambda x: None - >>> repo.pristine_tar.checkout('upstream', '1.1', 'gzip', '..') + >>> repo.pristine_tar.checkout('upstream', '1.1', 'gzip', '..') # doctest:+IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... gbp.command_wrappers.CommandExecFailed: Pristine-tar couldn't checkout "upstream_1.1.orig.tar.gz": fatal: Path 'upstream_1.1.orig.tar.gz.delta' does not exist in 'refs/heads/pristine-tar' |