Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

If there is nothing to document, 0 out of 0 should be 100%

  • Loading branch information...
commit 6f65787f8b932f5c36dafee2e9971055f9687581 1 parent 44407c1
Sanket Agarwal authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/coverage_doctest.py
3  bin/coverage_doctest.py
View
@@ -371,7 +371,7 @@ def coverage(module_path, verbose=False):
total_doctests = c_doctests + f_doctests
total_members = classes + functions
if total_members: score = 100 * float(total_doctests) / (total_members)
- else: score = 0
+ else: score = 100
score = int(score)
# Sort functions/classes by line number
@@ -411,6 +411,7 @@ def go(sympy_top, file, verbose=False, exact=True):
if __name__ == "__main__":
+
bintest_dir = os.path.abspath(os.path.dirname(__file__)) # bin/cover...
sympy_top = os.path.split(bintest_dir)[0] # ../
sympy_dir = os.path.join(sympy_top, 'sympy') # ../sympy/
Please sign in to comment.
Something went wrong with that request. Please try again.