From 2141e39d005c0cc90f784040db749764db0c7fb4 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Sun, 15 Oct 2023 09:08:45 +0200 Subject: [PATCH] WIP --- pythran/tests/test_distutils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pythran/tests/test_distutils.py b/pythran/tests/test_distutils.py index d094b9916..5d2293904 100644 --- a/pythran/tests/test_distutils.py +++ b/pythran/tests/test_distutils.py @@ -134,13 +134,12 @@ def test_setup_build3(self): if not os.path.isdir(libdir): libdir = os.path.join(base, 'lib64') - demo_dir_candidates = glob.glob(os.path.join(libdir, python_version, + demo_candidates = glob.glob(os.path.join(libdir, python_version, 'site-packages', - 'demo3*')) - demo_dir = [d for d in demo_dir_candidates if os.path.isdir(d)][0] + 'demo3*', 'a.*')) + + self.assertTrue(demo_candidates) - check_call([python, '-c', 'import a'], - cwd=demo_dir) check_call([python, 'setup.py', 'clean'], cwd=os.path.join(cwd, 'test_distutils_numpy')) shutil.rmtree(os.path.join(cwd, 'test_distutils_numpy', 'demo_install3'))