summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2021-11-24 08:23:49 +0100
committerMichael Howitz <mh@gocept.com>2021-11-24 08:23:49 +0100
commite10a5d49ed1e350127e4cc07f49a6a49439674bf (patch)
tree38d1773e368487316d214674a0c78de3666f01b5
parent6233036d55027a8e4b64c2b2f2418d60419ee2bd (diff)
downloadzope-interface-config-with-c-code.tar.gz
Assure that `UNVERIFIABLE_RO` is actually used.config-with-c-code
-rw-r--r--src/zope/interface/common/tests/test_collections.py9
1 files changed, 9 insertions, 0 deletions
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,
+ }