diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 1e97c864..5ed3e5f6 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -14,7 +14,7 @@ def get_site_package_folder(self): def find_lib_folder(self, lib_name:str): dirs = [f for f in os.listdir(self.get_site_package_folder()) if f.startswith(lib_name.replace('-', '_')+'-')] if len(dirs) == 1: - for f in os.listdir(self.get_site_package_folder()): + for f in os.listdir(os.join(self.get_site_package_folder(),dirs[0])): print(f"file in dir: {f}") return dirs[0] return None