diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
commit | 6b326e2e5c7d6c9899e6d196fc7fb96af2c0d207 (patch) | |
tree | dca5dc0903537b373a37adcc946f89c86b2df66b /tests/doctests | |
parent | 864c30905f865e9d407e5830d63cbd3c8cc5a8cf (diff) |
pristine-tar: add feature detection
so we can run tests with older pristine-tar not supporting verify
Diffstat (limited to 'tests/doctests')
-rw-r--r-- | tests/doctests/test_PristineTar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index 95472877..dffb4491 100644 --- a/tests/doctests/test_PristineTar.py +++ b/tests/doctests/test_PristineTar.py @@ -146,7 +146,8 @@ def test_pristine_tar_verify(): >>> import gbp.deb.git >>> repo = gbp.deb.git.DebianGitRepository(dirs['repo']) - >>> repo.pristine_tar.verify('../upstream_1.0.orig.tar.gz') + >>> if repo.pristine_tar.has_feature_verify(): + ... repo.pristine_tar.verify('../upstream_1.0.orig.tar.gz') """ |