Skip to content

Commit 2dcaff8

Browse files
committed
Updating coverage
1 parent 4467b84 commit 2dcaff8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.coveragerc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[report]
2+
omit =
3+
*/python?.?/*
4+
*/site-packages/nose/*
5+
*__init__*
6+
numbers.py
7+
decimal.py

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ sudo: false
1212

1313
install:
1414
- pip install coveralls
15+
- pip install nose
1516

1617
script:
17-
coverage run --source=deepdiff tests.py
18+
- python setup.py install
19+
- nosetests --with-coverage --cover-package=deepdiff
1820

1921
after_success:
2022
- coveralls

deepdiff/deepdiff.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
if (py_major_version, py_minor_version) == (2.6):
2424
sys.exit('Python 2.6 is not supported.')
2525

26-
if py3:
26+
if py3: # pragma: no cover
2727
from builtins import int
2828
strings = (str, bytes) # which are both basestring
2929
numbers = (int, float, complex, datetime.datetime, datetime.date, Decimal)
3030
from itertools import zip_longest
3131
items = 'items'
32-
else:
32+
else: # pragma: no cover
3333
strings = (str, unicode)
3434
numbers = (int, float, long, complex, datetime.datetime, datetime.date, Decimal)
3535
from itertools import izip_longest as zip_longest
@@ -40,7 +40,7 @@
4040

4141
IndexedHash = namedtuple('IndexedHash', 'indexes item')
4242

43-
EXPANDED_KEY_MAP = {
43+
EXPANDED_KEY_MAP = { # pragma: no cover
4444
'dic_item_added': 'dictionary_item_added',
4545
'dic_item_removed': 'dictionary_item_removed',
4646
'newindexes': 'new_indexes',
@@ -71,7 +71,7 @@ def order_unordered(data):
7171
return data
7272

7373

74-
class ListItemRemovedOrAdded(object):
74+
class ListItemRemovedOrAdded(object): # pragma: no cover
7575

7676
"""Class of conditions to be checked"""
7777

0 commit comments

Comments
 (0)