Skip to content

Commit 7ecba81

Browse files
authored
Merge pull request #100 from nledez/upgrade-coverage-and-osx-support
Upgrade coverage and OSX support
2 parents 159cf51 + e438901 commit 7ecba81

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ install:
2020
- pip install -e .[dev]
2121
script:
2222
- nosetests
23+
- coverage report -m
2324
- python setup.py sdist bdist_wheel && pip install dist/ovh-*.tar.gz && cd /tmp && python -c 'import ovh; ovh.Client("ovh-eu").get("/auth/time", _need_auth=False)' && cd -
2425
deploy:
2526
provider: pypi

ovh/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def __init__(self, *args, **kwargs):
4141
super(APIError, self).__init__(*args, **kwargs)
4242

4343
def __str__(self):
44-
if self.query_id:
44+
if self.query_id: # pragma: no cover
4545
return "{} \nOVH-Query-ID: {}".format(super(APIError, self).__str__(), self.query_id)
46-
else:
46+
else: # pragma: no cover
4747
return super(APIError, self).__str__()
4848

4949
class HTTPError(APIError):

setup.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,19 @@ exclude =
3939

4040
[options.extras_require]
4141
dev =
42-
coverage>=5.0.3
42+
coverage==5.5
4343
mock==1.0.1
44+
# nose >= 1.3.4 is not compatible with Python 3.10 due to collections.Callable
4445
nose==1.3.3
4546
yanc==0.2.4
4647
Sphinx==1.2.2
47-
coveralls==0.4.4
48+
coveralls==3.2.0
4849
setuptools>=30.3.0
4950
wheel
5051
test =
51-
coverage>=5.0.3
52+
coverage==5.5
5253
mock==1.0.1
54+
# nose >= 1.3.4 is not compatible with Python 3.10 due to collections.Callable
5355
nose==1.3.3
5456
yanc==0.2.4
5557

0 commit comments

Comments
 (0)