Skip to content

Commit

Permalink
Merge pull request #1782 from python-gitlab/jlvillal/repository_func_…
Browse files Browse the repository at this point in the history
…tests

chore: skip a functional test if not using >= py3.9
  • Loading branch information
nejch committed Dec 27, 2021
2 parents 171df89 + ac9b595 commit d65ce36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/functional/api/test_repository.py
@@ -1,4 +1,5 @@
import base64
import sys
import tarfile
import time
import zipfile
Expand Down Expand Up @@ -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",
[
Expand Down

0 comments on commit d65ce36

Please sign in to comment.