From 432bee094180eb271ee88c516dda261a8af33bf4 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Wed, 28 Apr 2021 15:56:41 -0700 Subject: [PATCH] fix small papercuts: SyntaxWarning and coverage reports --- tests/test_sourmash.py | 7 +++---- tox.ini | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test_sourmash.py b/tests/test_sourmash.py index 51c7c8b427..135efae65b 100644 --- a/tests/test_sourmash.py +++ b/tests/test_sourmash.py @@ -4116,12 +4116,11 @@ def test_gather_abund_10_1_ignore_abundance(c): some_results = False for row in r: some_results = True - assert row['average_abund'] is '' - assert row['median_abund'] is '' - assert row['std_abund'] is '' + assert row['average_abund'] == '' + assert row['median_abund'] == '' + assert row['std_abund'] == '' assert some_results - @utils.in_tempdir diff --git a/tox.ini b/tox.ini index 7ab78f4187..228f689f07 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,7 @@ commands = pytest \ --cov "{envsitepackagesdir}/sourmash" \ --cov . \ --cov-config "{toxinidir}/tox.ini" \ + --cov-report= \ --junitxml {toxworkdir}/junit.{envname}.xml \ {posargs:.} @@ -59,6 +60,7 @@ commands = pytest \ --cov "{envsitepackagesdir}/sourmash" \ --cov . \ --cov-config "{toxinidir}/tox.ini" \ + --cov-report= \ --junitxml {toxworkdir}/junit.{envname}.xml \ --run-hypothesis \ --hypothesis-show-statistics \ @@ -72,6 +74,7 @@ commands = pytest \ --cov "{envsitepackagesdir}/sourmash" \ --cov . \ --cov-config "{toxinidir}/tox.ini" \ + --cov-report= \ --junitxml {toxworkdir}/junit.{envname}.xml \ -k test_nodegraph \ {posargs:.} @@ -83,6 +86,7 @@ commands = pytest \ --cov "{envsitepackagesdir}/sourmash" \ --cov . \ --cov-config "{toxinidir}/tox.ini" \ + --cov-report= \ --junitxml {toxworkdir}/junit.{envname}.xml \ -k test_nodegraph \ {posargs:.}