summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-21 06:34:41 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-21 06:34:41 +0100
commit2372749be2e92df5d2aab11b1407948a8e25bf2f (patch)
tree95cccca705030ae372510ee0b939fd0bd2bbbc91 /setuptools/tests
parent54a8656ecbdfaaaf47f8b12260d8779632e370e1 (diff)
downloadpython-setuptools-git-2372749be2e92df5d2aab11b1407948a8e25bf2f.tar.gz
Fix recursion problem in finder
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_editable_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/tests/test_editable_install.py b/setuptools/tests/test_editable_install.py
index ff65df9b..4a2ceb12 100644
--- a/setuptools/tests/test_editable_install.py
+++ b/setuptools/tests/test_editable_install.py
@@ -495,6 +495,7 @@ class TestFinderTemplate:
assert three.x == 3
def test_no_recursion(self, tmp_path):
+ # See issue #3550
files = {
"pkg": {
"__init__.py": "from . import pkg",
@@ -511,7 +512,7 @@ class TestFinderTemplate:
sys.modules.pop("pkg", None)
self.install_finder(template)
- with pytest.raises(ModuleNotFoundError, match="No module named 'pkg.pkg'"):
+ with pytest.raises(ImportError, match="pkg"):
import_module("pkg")