diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-12-28 00:17:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 00:17:06 +0100 |
commit | d65ce365ff69a6bec2aa8d306800f6f76cbef842 (patch) | |
tree | b6a3509f9971a32edc36baa0d577e5c269e9194f | |
parent | 171df891bc3153ae4dd79eac82c57675a0758e4b (diff) | |
parent | ac9b59591a954504d4e6e9b576b7a43fcb2ddaaa (diff) | |
download | gitlab-d65ce365ff69a6bec2aa8d306800f6f76cbef842.tar.gz |
Merge pull request #1782 from python-gitlab/jlvillal/repository_func_tests
chore: skip a functional test if not using >= py3.9
-rw-r--r-- | tests/functional/api/test_repository.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/api/test_repository.py b/tests/functional/api/test_repository.py index ecef1f1..f08a029 100644 --- a/tests/functional/api/test_repository.py +++ b/tests/functional/api/test_repository.py @@ -1,4 +1,5 @@ import base64 +import sys import tarfile import time import zipfile @@ -63,6 +64,9 @@ def test_repository_archive(project): assert archive == archive2 +# NOTE(jlvillal): Support for using tarfile.is_tarfile() on a file or file-like object +# was added in Python 3.9 +@pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9 or higher") @pytest.mark.parametrize( "format,assertion", [ |