Skip to content

Commit

Permalink
Merge e7fec59 into 9480906
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 22, 2020
2 parents 9480906 + e7fec59 commit cde1662
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
- name: "Python: 2.7, pure (no C extensions)"
python: 2.7
env: PURE_PYTHON=1
- name: "Python: 3.6, pure (no C extensions), with coverage"
python: 3.6
env: PURE_PYTHON=1 WITH_COVERAGE=1
- name: "Python: 3.6, with coverage"
python: 3.6
env: WITH_COVERAGE=1
- name: "Python: 3.8, pure (no C extensions), with coverage, strict IRO"
python: 3.8
env: PURE_PYTHON=1 WITH_COVERAGE=1 ZOPE_INTERFACE_STRICT_IRO=1
- name: "Python: 3.8, with coverage, strict IRO"
python: 3.8
env: WITH_COVERAGE=1 ZOPE_INTERFACE_STRICT_IRO=1

# manylinux wheel builds
- name: 64-bit manylinux wheels (all Pythons)
Expand Down Expand Up @@ -91,9 +91,11 @@ install:

script:
- python --version
# Temporary use of unittest over zope.testrunner; see tox.ini.
# (WITH_COVERAGE implies STRICT_IRO)
- |
if [[ "$WITH_COVERAGE" == "1" ]]; then
python -m coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress --verbose
python -m coverage run -m unittest discover -s .
else
python -m zope.testrunner --test-path=. --auto-color --auto-progress --verbose
fi
Expand Down
2 changes: 1 addition & 1 deletion BTrees/Interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ISet(IKeySequence, ISetMutable):
pass


class ITreeSet(IKeyed, ISetMutable):
class ITreeSet(ISetMutable):
pass

class IMinimalDictionary(ISized, IKeyed):
Expand Down
5 changes: 5 additions & 0 deletions BTrees/tests/test_dynamic_btrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@
_suite.addTest(unittest.defaultTestLoader.loadTestsFromModule(mod))

def test_suite():
# zope.testrunner protocol
return _suite

def load_tests(loader, standard_tests, pattern): # pylint:disable=unused-argument
# Pure unittest protocol.
return test_suite()
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
incorrectly left out names. See `PR 132
<https://github.com/zopefoundation/BTrees/pull/132>`_.

- Ensure the interface resolution order of all objects is consistent.
See `issue 137 <https://github.com/zopefoundation/BTrees/issues/137>`_.

4.7.0 (2020-03-17)
==================
Expand Down
9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ usedevelop = true
extras =
test
commands =
zope-testrunner --test-path=. --auto-color --auto-progress []
# Temporary work around. Avoid zope.testrunner pending
# https://github.com/zopefoundation/zope.security/issues/71
python -m unittest discover -s BTrees -t .
setenv =
PYTHONFAULTHANDLER=1
PYTHONDEVMODE=1
ZOPE_INTERFACE_STRICT_IRO=1
pure: PURE_PYTHON=1

#[testenv:jython]
Expand All @@ -33,6 +37,9 @@ commands =
coverage report --fail-under=92
deps =
coverage
# Temporary; see main testenv.
setenv =
ZOPE_INTERFACE_STRICT_IRO=0

[testenv:docs]
basepython =
Expand Down

0 comments on commit cde1662

Please sign in to comment.