diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-21 06:34:41 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-21 06:34:41 +0100 |
commit | 2372749be2e92df5d2aab11b1407948a8e25bf2f (patch) | |
tree | 95cccca705030ae372510ee0b939fd0bd2bbbc91 /setuptools/tests | |
parent | 54a8656ecbdfaaaf47f8b12260d8779632e370e1 (diff) | |
download | python-setuptools-git-2372749be2e92df5d2aab11b1407948a8e25bf2f.tar.gz |
Fix recursion problem in finder
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_editable_install.py | 3 |
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") |