Skip to content

Commit

Permalink
"Fix" a test broken just on windows + allow to use posargs for tox te…
Browse files Browse the repository at this point in the history
…st runs.
  • Loading branch information
Michael Howitz committed Nov 23, 2021
1 parent 13b311f commit 09390f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .meta.toml
Expand Up @@ -16,7 +16,7 @@ with-docs = true
[tox]
use-flake8 = false
testenv-commands = [
"coverage run -p -m unittest discover -s src",
"coverage run -p -m unittest discover -s src {posargs}",
]
testenv-deps = [
]
Expand Down
5 changes: 5 additions & 0 deletions src/zope/interface/common/tests/test_collections.py
Expand Up @@ -125,6 +125,11 @@ def test_non_iterable_UserDict(self):
type({}.viewkeys()),
})
NON_STRICT_RO = {
# ``array.array`` fails the ``test_auto_ro_*`` tests with strict RO
# but only on Windows (AppVeyor) on Python 3.10.0 (in older
# versions ``array.array`` does not appear as
# ``IMutableSequence``).
array.array,
}

add_abc_interface_tests(TestVerifyClass, collections.ISet.__module__)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -24,7 +24,7 @@ setenv =
!pure-!pypy-!pypy3: PURE_PYTHON=0
ZOPE_INTERFACE_STRICT_IRO=1
commands =
coverage run -p -m unittest discover -s src
coverage run -p -m unittest discover -s src {posargs}
!py27-!pypy: sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
extras =
test
Expand Down

0 comments on commit 09390f7

Please sign in to comment.