FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: skip a functional test if not using >= py3.9 · python-gitlab/python-gitlab@ac9b595 · GitHub

Repository navigation

Commit ac9b595

Browse files
chore: skip a functional test if not using >= py3.9
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.
1 parent ee66f4a commit ac9b595

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/functional/api/test_repository.py‎

Lines changed: 4 additions & 0 deletions
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)

Back | FazBrowse Home | New Git URL