summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-03-06 19:01:07 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-03-06 19:01:38 +0000
commit384d0c49740cf666771b44139d514af7d6437d6c (patch)
tree834a2839e27a0e6cca639a3596123a7635cdbbbc /setuptools/tests
parent0f050a1cf4e71d79fb4402fe7ccbfcb148120234 (diff)
downloadpython-setuptools-git-384d0c49740cf666771b44139d514af7d6437d6c.tar.gz
Import SetuptoolsDeprecationWarning from setuptools.warnings
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/config/test_apply_pyprojecttoml.py2
-rw-r--r--setuptools/tests/config/test_setupcfg.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/config/test_apply_pyprojecttoml.py b/setuptools/tests/config/test_apply_pyprojecttoml.py
index 3a66d494..8f76f2c9 100644
--- a/setuptools/tests/config/test_apply_pyprojecttoml.py
+++ b/setuptools/tests/config/test_apply_pyprojecttoml.py
@@ -15,7 +15,7 @@ import pytest
from ini2toml.api import Translator
import setuptools # noqa ensure monkey patch to metadata
-from setuptools._deprecation_warning import SetuptoolsDeprecationWarning
+from setuptools.warnings import SetuptoolsDeprecationWarning
from setuptools.dist import Distribution
from setuptools.config import setupcfg, pyprojecttoml
from setuptools.config import expand
diff --git a/setuptools/tests/config/test_setupcfg.py b/setuptools/tests/config/test_setupcfg.py
index a47138c8..97207829 100644
--- a/setuptools/tests/config/test_setupcfg.py
+++ b/setuptools/tests/config/test_setupcfg.py
@@ -7,7 +7,7 @@ from unittest.mock import Mock, patch
import pytest
from distutils.errors import DistutilsOptionError, DistutilsFileError
-from setuptools._deprecation_warning import SetuptoolsDeprecationWarning
+from setuptools.warnings import SetuptoolsDeprecationWarning
from setuptools.dist import Distribution, _Distribution
from setuptools.config.setupcfg import ConfigHandler, read_configuration
from setuptools.extern.packaging.requirements import InvalidRequirement