Skip to content
Snippets Groups Projects
Commit b718fa1b authored by David Douard's avatar David Douard
Browse files

Remove bw-compat code for pytest<3.9

parent 6b316d83
No related branches found
No related tags found
No related merge requests found
......@@ -7,24 +7,11 @@ import os
from pathlib import Path
import shutil
import pkg_resources.extern.packaging.version
import pytest
import yaml
from swh.core import config
pytest_v = pkg_resources.get_distribution("pytest").parsed_version
if pytest_v < pkg_resources.extern.packaging.version.parse("3.9"):
@pytest.fixture
def tmp_path():
import pathlib
import tempfile
with tempfile.TemporaryDirectory() as tmpdir:
yield pathlib.Path(tmpdir)
default_conf = {
"a": ("int", 2),
"b": ("string", "default-string"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment