diff options
author | John L. Villalovos <john@sodarock.com> | 2021-12-26 22:15:35 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-12-26 22:15:35 -0800 |
commit | ac9b59591a954504d4e6e9b576b7a43fcb2ddaaa (patch) | |
tree | bf571a96ca66afe15d374bc45fe031e7d18e15c5 | |
parent | ee66f4a777490a47ad915a3014729a9720bf909b (diff) | |
download | gitlab-jlvillal/repository_func_tests.tar.gz |
chore: skip a functional test if not using >= py3.9jlvillal/repository_func_tests
One of the tests requires Python 3.9 or higher to run. Mark the test
to be skipped if running Python less than 3.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", [ |