From 884b4952af27a4fc4760f990370f8c16988ce8a3 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:19:47 +0200 Subject: Fix python import tests (#38928) Running `spack test run ` resulted in the error ``` 'str' object is not callable ``` because the python executable was not set correctly. --- lib/spack/spack/build_systems/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py index 01f7bd62be..5575379b8b 100644 --- a/lib/spack/spack/build_systems/python.py +++ b/lib/spack/spack/build_systems/python.py @@ -173,7 +173,7 @@ class PythonExtension(spack.package_base.PackageBase): # Make sure we are importing the installed modules, # not the ones in the source directory - python = inspect.getmodule(self).python.path + python = inspect.getmodule(self).python for module in self.import_modules: with test_part( self, -- cgit v1.2.3-60-g2f50