Skip to content

Commit

Permalink
tests: skip checks using Iterable from abc
Browse files Browse the repository at this point in the history
python-3.13.1 broke compatibility with pylint.

Revert this one the pylint issue [1] is fixed.

[1] pylint-dev/pylint#10112
[2] pylint-dev/astroid#2656
  • Loading branch information
KKoukiou authored and rvykydal committed Dec 17, 2024
1 parent e70f850 commit d2167c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/unit_tests/pyanaconda_tests/core/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

import unittest
from pyanaconda.core.kernel import KernelArguments, kernel_arguments
from collections.abc import Iterable
# FIXME: https://github.com/pylint-dev/pylint/issues/10112
# Re-enable the following line when the issue is fixed
# from collections.abc import Iterable


class KernelArgumentsTests(unittest.TestCase):
Expand Down Expand Up @@ -77,7 +79,9 @@ def test_items(self):

ka = KernelArguments.from_defaults()
it = ka.items()
assert isinstance(it, Iterable)
# FIXME: https://github.com/pylint-dev/pylint/issues/10112
# Re-enable the following line when the issue is fixed
# assert isinstance(it, Iterable)
root_seen = False
for k, v in it: # pylint: disable=unused-variable
if k == "root":
Expand All @@ -91,7 +95,9 @@ def test_items_raw(self):
"blah inst.foo=anything inst.nothing=indeed")
it = ka.items_raw()

assert isinstance(it, Iterable)
# FIXME: https://github.com/pylint-dev/pylint/issues/10112
# Re-enable the following line when the issue is fixed
# assert isinstance(it, Iterable)

res = dict()
for k, v in it:
Expand Down

0 comments on commit d2167c1

Please sign in to comment.