Skip to content

Commit 38b8333

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Remove deprecated distutils usage for Python 3.12 (#8280)
Summary: Co-authored-by: vfdev <[email protected]> Reviewed By: vmoens Differential Revision: D55062781 fbshipit-source-id: f4d98758e3e8d4bdf6781a7ecace06ede5d132de
1 parent f9bf2f5 commit 38b8333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_datasets_download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import contextlib
22
import itertools
3+
import shutil
34
import tempfile
45
import time
56
import traceback
67
import unittest.mock
78
import warnings
89
from datetime import datetime
9-
from distutils import dir_util
1010
from os import path
1111
from urllib.error import HTTPError, URLError
1212
from urllib.parse import urlparse
@@ -180,7 +180,7 @@ def collect_urls(dataset_cls, *args, **kwargs):
180180
@pytest.fixture(scope="module", autouse=True)
181181
def root():
182182
yield ROOT
183-
dir_util.remove_tree(ROOT)
183+
shutil.rmtree(ROOT)
184184

185185

186186
def places365():

0 commit comments

Comments
 (0)