From fe2f7f230a52dc20d15a39d5edc8dabf68731bc1 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Apr 27 2022 20:45:47 +0000 Subject: Do not test against astroid (rhbz#2034943) In https://github.com/gristlabs/asttokens/issues/79, upstream says that astroid is only used optionally. It seems that our users of asttokens do not actually use it with astroid, but with plain ast, so the incompatiblity with newest astroid doesn't impact us. Let's skip the tests for now and hope that this will be resolved if somebody wants to use asttokens with astroid. --- diff --git a/python-asttokens.spec b/python-asttokens.spec index f731127..f6d8ad5 100644 --- a/python-asttokens.spec +++ b/python-asttokens.spec @@ -43,7 +43,13 @@ Requires: %{py3_dist six} %py3_install %check -pytest-3 tests/ -v --ignore=tests/testdata/ +TEST_ARGS=( + # Temporarily disabled until version incompatibility is resolved upstream: + # https://github.com/gristlabs/asttokens/issues/79 + --ignore=tests/test_astroid.py +) + +pytest-3 tests/ -v "${TEST_ARGS[@]}" %files -n python3-asttokens %license LICENSE