Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure with meta/config. #243

Merged
merged 10 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
coverage run -p -m unittest discover -s src
PURE_PYTHON=1 coverage run -p -m unittest discover -s src
coverage combine
coverage report -i
coverage report --ignore-errors --show-missing
icemac marked this conversation as resolved.
Show resolved Hide resolved
- name: Submit to Coveralls
# This is a container action, which only runs on Linux.
if: ${{ startsWith(runner.os, 'Linux') }}
Expand Down
6 changes: 3 additions & 3 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/c-code
[meta]
template = "c-code"
commit-id = "610580f1f4e093cff103734fa0837e9e5a70f8ec"
commit-id = "3ddccc7a1430600364f48f37e4f24a275e1bbb85"

[python]
with-appveyor = true
Expand Down Expand Up @@ -44,7 +44,7 @@ coverage-additional = [
]

[coverage]
fail-under = 98
fail-under = 99

[manifest]
additional-rules = [
Expand Down Expand Up @@ -89,7 +89,7 @@ additional-install = [
" coverage run -p -m unittest discover -s src",
" PURE_PYTHON=1 coverage run -p -m unittest discover -s src",
" coverage combine",
" coverage report -i",
" coverage report --ignore-errors --show-missing",
]

[appveyor]
Expand Down
22 changes: 11 additions & 11 deletions src/zope/interface/tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,9 +1177,9 @@ def test_classImplements_simple(self):

class ICurrent(Interface):
def method1(a, b):
pass
"""docstring"""
def method2(a, b):
pass
"""docstring"""

class IOther(Interface):
pass
Expand Down Expand Up @@ -1207,7 +1207,7 @@ def test_classImplements_base_not_derived(self):
from zope.interface import providedBy
class IBase(Interface):
def method():
pass
"""docstring"""
class IDerived(IBase):
pass
class Current():
Expand All @@ -1230,7 +1230,7 @@ def test_classImplements_base_and_derived(self):

class IBase(Interface):
def method():
pass
"""docstring"""

class IDerived(IBase):
pass
Expand Down Expand Up @@ -1258,7 +1258,7 @@ def test_classImplements_multiple(self):

class ILeft(Interface):
def method():
pass
"""docstring"""

class IRight(ILeft):
pass
Expand Down Expand Up @@ -1292,7 +1292,7 @@ def test_classImplements_multiple_w_explict_implements(self):
class ILeft(Interface):

def method():
pass
"""docstring"""

class IRight(ILeft):
pass
Expand Down Expand Up @@ -1405,7 +1405,7 @@ class ISimple(Interface):
attr = Attribute(u'My attr')

def method():
pass
"""docstring"""

self.assertEqual(sorted(ISimple.names()), ['attr', 'method'])

Expand All @@ -1418,16 +1418,16 @@ class IBase(Interface):
attr = Attribute(u'My attr')

def method():
pass
"""docstring"""

class IDerived(IBase):
attr2 = Attribute(u'My attr2')

def method():
pass
"""docstring"""

def method2():
pass
"""docstring"""

self.assertEqual(sorted(IDerived.names()),
['attr2', 'method', 'method2'])
Expand Down Expand Up @@ -1753,7 +1753,7 @@ def test_function_attributes_become_tagged_values(self):

class ITagMe(Interface):
def method():
pass
"""docstring"""
method.optional = 1

method = ITagMe['method']
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ commands =
mkdir -p {toxinidir}/parts/htmlcov
coverage combine
coverage html -i
coverage report -i -m --fail-under=98
coverage report -i -m --fail-under=99
depends = py27,py27-pure,py35,py35-pure,py36,py36-pure,py37,py37-pure,py38,py38-pure,py39,py39-pure,pypy,pypy3,docs
parallel_show_output = true

Expand Down