Skip to content

Commit

Permalink
[fbsync] Remove deprecated distutils usage for Python 3.12 (#8280)
Browse files Browse the repository at this point in the history
Summary: Co-authored-by: vfdev <vfdev.5@gmail.com>

Reviewed By: vmoens

Differential Revision: D55062781

fbshipit-source-id: f4d98758e3e8d4bdf6781a7ecace06ede5d132de
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Mar 20, 2024
1 parent f9bf2f5 commit 38b8333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_datasets_download.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import contextlib
import itertools
import shutil
import tempfile
import time
import traceback
import unittest.mock
import warnings
from datetime import datetime
from distutils import dir_util
from os import path
from urllib.error import HTTPError, URLError
from urllib.parse import urlparse
Expand Down Expand Up @@ -180,7 +180,7 @@ def collect_urls(dataset_cls, *args, **kwargs):
@pytest.fixture(scope="module", autouse=True)
def root():
yield ROOT
dir_util.remove_tree(ROOT)
shutil.rmtree(ROOT)


def places365():
Expand Down

0 comments on commit 38b8333

Please sign in to comment.