summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2023-07-17 22:19:47 +0200
committerGitHub <noreply@github.com>2023-07-17 13:19:47 -0700
commit884b4952af27a4fc4760f990370f8c16988ce8a3 (patch)
treef1a8b5cbd43516b207bc0e66d0d7a7337928f5d9 /lib
parentcc737897448808a51ad08a14df3ba9d984b355b3 (diff)
downloadspack-884b4952af27a4fc4760f990370f8c16988ce8a3.tar.gz
spack-884b4952af27a4fc4760f990370f8c16988ce8a3.tar.bz2
spack-884b4952af27a4fc4760f990370f8c16988ce8a3.tar.xz
spack-884b4952af27a4fc4760f990370f8c16988ce8a3.zip
Fix python import tests (#38928)
Running `spack test run <python package>` resulted in the error ``` 'str' object is not callable ``` because the python executable was not set correctly.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/python.py2
1 files changed, 1 insertions, 1 deletions
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,