Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 5 additions & 1 deletion shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down