File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
+
2
3
python :
3
- - ' 2.7'
4
+ - ' 2.7'
5
+ - ' 3.3'
6
+ - ' 3.4'
7
+ - ' 3.5'
8
+
9
+ install :
10
+ - pip install .
11
+
4
12
script :
5
- - touch foo
13
+ - python shapefile.py
14
+
6
15
deploy :
7
16
provider : pypi
8
17
user : jlawhead
Original file line number Diff line number Diff line change @@ -1233,16 +1233,19 @@ def __fieldNorm(self, fieldName):
1233
1233
fieldName .replace (' ' , '_' )
1234
1234
1235
1235
# Begin Testing
1236
- def test ():
1236
+ def test (** kwargs ):
1237
1237
import doctest
1238
1238
doctest .NORMALIZE_WHITESPACE = 1
1239
- doctest .testfile ("README.md" , verbose = 1 )
1240
-
1239
+ verbosity = kwargs .get ('verbose' , 1 )
1240
+ failure_count , test_count = doctest .testfile ("README.md" , verbose = verbosity )
1241
+ return failure_count
1242
+
1241
1243
if __name__ == "__main__" :
1242
1244
"""
1243
1245
Doctests are contained in the file 'README.md'. This library was originally developed
1244
1246
using Python 2.3. Python 2.4 and above have some excellent improvements in the built-in
1245
1247
testing libraries but for now unit testing is done using what's available in
1246
1248
2.3.
1247
1249
"""
1248
- test ()
1250
+ failure_count = test ()
1251
+ sys .exit (failure_count )
You can’t perform that action at this time.
0 commit comments