diff --git a/README.md b/README.md index 6a677af..01807db 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# PyShp + +This library reads and writes ESRI Shapefiles in pure Python. + +[![Build Status](https://travis-ci.org/GeospatialPython/pyshp.svg?branch=master)](https://travis-ci.org/GeospatialPython/pyshp) + ## Contents [Overview](#overview) diff --git a/shapefile.py b/shapefile.py index 626f60d..569ace9 100644 --- a/shapefile.py +++ b/shapefile.py @@ -1245,8 +1245,12 @@ def __fieldNorm(self, fieldName): def test(**kwargs): import doctest doctest.NORMALIZE_WHITESPACE = 1 - verbosity = kwargs.get('verbose', 1) + verbosity = kwargs.get('verbose', 0) + if verbosity == 0: + print('Running doctests...') failure_count, test_count = doctest.testfile("README.md", verbose=verbosity) + if verbosity == 0 and failure_count == 0: + print('All test passed successfully') return failure_count if __name__ == "__main__":