diff --git a/python-rich.spec b/python-rich.spec index 8669f24..3b605d9 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -47,6 +47,9 @@ code, tracebacks, and more — out of the box. %pyproject_save_files rich %check +# add below to make sure initial build will catch runtime import errors +%pyproject_check_import + # some tests are skipped so python-rich builds during Python 3.11 mass rebuild # downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=2049619 %pytest -k "not test_inspect_text and not test_inspect_integer_with_methods and not test_log and not test_attrs_broken and not test_inspect_builtin_function"