From bfc0b2a006d58a1c354cb89da89dc27df11a8af9 Mon Sep 17 00:00:00 2001 From: liferoad Date: Sat, 29 Mar 2025 16:08:50 -0400 Subject: [PATCH] warning for copy_tests_from_docs --- sdks/python/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 49d9ac368811..ef4597cb21c3 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -211,9 +211,9 @@ def copy_tests_from_docs(): for path in glob.glob(os.path.join(docs_src, 'yaml*.md')): shutil.copy(path, docs_dest) else: - if not os.path.exists(docs_dest): - raise RuntimeError( - f'Could not locate yaml docs in {docs_src} or {docs_dest}.') + warnings.warn( + f'Could not locate yaml docs source directory {docs_src}. ' + f'Skipping copying tests from docs.') def generate_external_transform_wrappers():