forked from pool/python-frozenlist
* Do not attempt to query annotation internals. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=28
15 lines
656 B
Diff
15 lines
656 B
Diff
Index: frozenlist-1.8.0/tests/test_frozenlist.py
|
|
===================================================================
|
|
--- frozenlist-1.8.0.orig/tests/test_frozenlist.py
|
|
+++ frozenlist-1.8.0/tests/test_frozenlist.py
|
|
@@ -29,6 +29,9 @@ class FrozenListMixin:
|
|
for name in set(dir(MutableSequence)) - self.SKIP_METHODS:
|
|
if name.startswith("_") and not name.endswith("_"):
|
|
continue
|
|
+ # Do not check annotation internals
|
|
+ if name in ("__annotations_cache__", "__annotate_func__"):
|
|
+ continue
|
|
assert hasattr(self.FrozenList, name)
|
|
|
|
def test_ctor_default(self) -> None:
|