Skip to content

Commit

Permalink
fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jun 7, 2016
1 parent e4f7561 commit 1d6b0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ And now the estimators can be compared against each other:

>>> import sys
>>> for i, e in enumerate(estimators):
... sys.stdout.write(genomes[i][:20] + ' ')
... _ = sys.stdout.write(genomes[i][:20] + ' ')
... for j, e2 in enumerate(estimators):
... x = e.jaccard(estimators[j])
... sys.stdout.write(str(round(x, 3)) + ' ')
... sys.stdout.write('\n')
... _ = sys.stdout.write(str(round(x, 3)) + ' ')
... _= sys.stdout.write('\n')
data/GCF_000005845.2 1.0 0.0 0.0
data/GCF_000006945.1 0.0 1.0 0.0
data/GCF_000783305.1 0.0 0.0 1.0
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[pytest]
addopts = --doctest-glob='*.rst'
python_files = sourmash_lib/*.py
norecursedirs = utils

0 comments on commit 1d6b0c0

Please sign in to comment.