From e10a5d49ed1e350127e4cc07f49a6a49439674bf Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Wed, 24 Nov 2021 08:23:49 +0100 Subject: Assure that `UNVERIFIABLE_RO` is actually used. --- src/zope/interface/common/tests/test_collections.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/zope/interface/common/tests/test_collections.py b/src/zope/interface/common/tests/test_collections.py index 95dbd3f..152626b 100644 --- a/src/zope/interface/common/tests/test_collections.py +++ b/src/zope/interface/common/tests/test_collections.py @@ -126,6 +126,7 @@ class TestVerifyClass(VerifyClassMixin, unittest.TestCase): }) NON_STRICT_RO = { } + else: UNVERIFIABLE_RO = { # ``array.array`` fails the ``test_auto_ro_*`` tests with and # without strict RO but only on Windows (AppVeyor) on Python 3.10.0 @@ -170,3 +171,11 @@ class TestVerifyObject(VerifyObjectMixin, CONSTRUCTORS.update({ collections.IValuesView: {}.viewvalues, }) + else: + UNVERIFIABLE_RO = { + # ``array.array`` fails the ``test_auto_ro_*`` tests with and + # without strict RO but only on Windows (AppVeyor) on Python 3.10.0 + # (in older versions ``array.array`` does not appear as + # ``IMutableSequence``). + array.array, + } -- cgit v1.2.1