Unverified Commit 423a1b0e authored by Tobias Fischer's avatar Tobias Fischer Committed by GitHub
Browse files

Remove deprecated distutils usage for Python 3.12 (#8280)


Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
parent fd9b61d5
import contextlib import contextlib
import itertools import itertools
import shutil
import tempfile import tempfile
import time import time
import traceback import traceback
import unittest.mock import unittest.mock
import warnings import warnings
from datetime import datetime from datetime import datetime
from distutils import dir_util
from os import path from os import path
from urllib.error import HTTPError, URLError from urllib.error import HTTPError, URLError
from urllib.parse import urlparse from urllib.parse import urlparse
...@@ -180,7 +180,7 @@ ROOT = tempfile.mkdtemp() ...@@ -180,7 +180,7 @@ ROOT = tempfile.mkdtemp()
@pytest.fixture(scope="module", autouse=True) @pytest.fixture(scope="module", autouse=True)
def root(): def root():
yield ROOT yield ROOT
dir_util.remove_tree(ROOT) shutil.rmtree(ROOT)
def places365(): def places365():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment