File tree Expand file tree Collapse file tree 7 files changed +57
-3
lines changed Expand file tree Collapse file tree 7 files changed +57
-3
lines changed Original file line number Diff line number Diff line change
1
+ [report]
2
+ fail_under = 100
3
+ exclude_lines =
4
+ # Have to re-enable the standard pragma
5
+ pragma: no cover
6
+
7
+ # Don't complain if tests don't hit defensive assertion code:
8
+ raise NotImplementedError
9
+
10
+ [run]
11
+ omit = *tests*
12
+ branch = True
Original file line number Diff line number Diff line change
1
+ language : python
2
+ matrix :
3
+ include :
4
+ - python : " 2.7"
5
+ env : TEST_SUITE=suite_2_7 TOX_ENV=py27
6
+ - python : " pypy"
7
+ env : TEST_SUITE=suite_pypy TOX_ENV=pypy
8
+ - python : " 3.4"
9
+ env : TEST_SUITE=suite_3_4 TOX_ENV=py34
10
+ - python : " 3.5"
11
+ env : TEST_SUITE=suite_3_5 TOX_ENV=py35
12
+ - python : " 3.4"
13
+ env : TEST_SUITE=suite_3_4 TOX_ENV=pep8
14
+
15
+ before_install :
16
+ - sudo apt-get install build-essential python-dev
17
+
18
+ install : pip install tox setuptools virtualenv coveralls --upgrade
19
+
20
+ script : tox -v -e $TOX_ENV -- -v
21
+
22
+ after_success : coveralls
23
+
24
+ notifications :
25
+ email :
26
+ - bm_witness@yahoo.com
27
+
Original file line number Diff line number Diff line change @@ -66,9 +66,12 @@ def __del__(self):
66
66
if self .__session in PyInstance .pyinstances :
67
67
# Decrement the reference counter
68
68
PyInstance .pyinstances [self .__session ][PyInstance .__COUNTER ] = (
69
- PyInstance .pyinstances [self .__session ][PyInstance .__COUNTER ] - 1
69
+ PyInstance .pyinstances [
70
+ self .__session ][PyInstance .__COUNTER ] - 1
70
71
)
71
72
72
73
# If zero, clear out the session from the instances dict
73
- if not PyInstance .pyinstances [self .__session ][PyInstance .__COUNTER ]:
74
+ if not (
75
+ PyInstance .pyinstances [self .__session ][PyInstance .__COUNTER ]
76
+ ):
74
77
del PyInstance .pyinstances [self .__session ]
Original file line number Diff line number Diff line change 1
1
nose2
2
+ nose2-cov
2
3
six
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ def test_derived_multiple(self):
60
60
pyinstance .PyInstance .pyinstances [k ]['instance' ],
61
61
DerivedInstance
62
62
)
63
+ v .__del__ ()
63
64
64
65
def test_derived_repeats (self ):
65
66
session_names = [
@@ -75,7 +76,7 @@ def test_derived_repeats(self):
75
76
id (v )
76
77
for k , v in six .iteritems (sessions )
77
78
]
78
-
79
+
79
80
self .assertEqual (
80
81
len (session_names ),
81
82
len (ids )
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def test_direct_multiple(self):
52
52
pyinstance .PyInstance .pyinstances [k ]['instance' ],
53
53
pyinstance .PyInstance
54
54
)
55
+ v .__del__ ()
55
56
56
57
def test_direct_repeats (self ):
57
58
session_names = [
@@ -89,3 +90,6 @@ def test_direct_repeats(self):
89
90
pyinstance .PyInstance .pyinstances [s ]['instance' ],
90
91
pyinstance .PyInstance
91
92
)
93
+
94
+ for k , v in six .iteritems (sessions ):
95
+ v .__del__ ()
Original file line number Diff line number Diff line change
1
+ [coverage]
2
+ always-on = True
3
+ coverage = pyinstance
4
+ coverage-report = html
5
+ term-missing
6
+ term
You can’t perform that action at this time.
0 commit comments