Skip to content

Commit

Permalink
Move compatibility module into compat package.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 14, 2024
1 parent a996148 commit b164d66
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _save_cwd():

@pytest.fixture
def distutils_managed_tempdir(request):
from distutils.tests import py38compat as os_helper
from distutils.tests.compat import py38 as os_helper

self = request.instance
self.tempdirs = []
Expand Down
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion distutils/tests/test_archive_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import path
import pytest

from .py38compat import check_warnings
from .compat.py38 import check_warnings
from .unix_compat import UID_0_SUPPORT, grp, pwd, require_uid_0, require_unix_id


Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_bdist_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import pytest

from .py38compat import requires_zlib
from .compat.py38 import requires_zlib

SETUP_PY = """\
from distutils.core import setup
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import path
import pytest

from . import py38compat as import_helper
from .compat import py38 as import_helper


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from .py38compat import check_warnings
from .compat.py38 import check_warnings


class TestExtension:
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import jaraco.path
import pytest

from . import py38compat as os_helper
from .compat import py38 as os_helper

MANIFEST_IN = """\
include ok
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import pytest
from more_itertools import ilen

from .py38compat import check_warnings
from .compat.py38 import check_warnings
from .unix_compat import grp, pwd, require_uid_0, require_unix_id

SETUP_PY = """
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import path
import pytest

from . import py38compat as os_helper
from .compat import py38 as os_helper


class TestSpawn(support.TempdirManager):
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_unixccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pytest

from . import support
from .py38compat import EnvironmentVarGuard
from .compat.py38 import EnvironmentVarGuard


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit b164d66

Please sign in to comment.