Skip to content

Commit d65ce36

Browse files
authored
Merge pull request #1782 from python-gitlab/jlvillal/repository_func_tests
chore: skip a functional test if not using >= py3.9
2 parents 171df89 + ac9b595 commit d65ce36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/functional/api/test_repository.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import base64
2+
import sys
23
import tarfile
34
import time
45
import zipfile
@@ -63,6 +64,9 @@ def test_repository_archive(project):
6364
assert archive == archive2
6465

6566

67+
# NOTE(jlvillal): Support for using tarfile.is_tarfile() on a file or file-like object
68+
# was added in Python 3.9
69+
@pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9 or higher")
6670
@pytest.mark.parametrize(
6771
"format,assertion",
6872
[

0 commit comments

Comments
 (0)