Skip to content

Commit

Permalink
Merge 2f65e46 into 39e9c2a
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Feb 20, 2020
2 parents 39e9c2a + 2f65e46 commit 2d441dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -47,10 +47,8 @@ before_script:
- python -m pliers.support.download
- python -m spacy download en_core_web_sm
script:
- py.test pliers/tests/test_* --cov-report term-missing --cov=pliers -m "not requires_payment"
- py.test pliers/tests/extractors --cov-report term-missing --cov=pliers -m "not requires_payment" --cov-append
- py.test pliers/tests/converters --cov-report term-missing --cov=pliers -m "not requires_payment" --cov-append
- py.test pliers/tests/filters --cov-report term-missing --cov=pliers -m "not requires_payment" --cov-append
- py.test pliers/tests/test_* pliers/tests/converters pliers/tests/filters --cov=pliers --cov-report= -m "not requires_payment" -W ignore::UserWarning
- py.test pliers/tests/extractors --cov=pliers --cov-report= -m "not requires_payment" --cov-append -W ignore::UserWarning
after_success:
- coveralls
before_cache:
Expand Down
6 changes: 3 additions & 3 deletions pliers/tests/conftest.py
Expand Up @@ -29,7 +29,7 @@ def pytest_runtest_teardown(item):
gc.collect()


LEAK_LIMIT = 5 * 1024 * 1024
LEAK_LIMIT = 75 * 1024 * 1024


def pytest_terminal_summary(terminalreporter):
Expand All @@ -40,8 +40,8 @@ def pytest_terminal_summary(terminalreporter):
leaked = end_entry.consumed_ram - start_entry.consumed_ram
if leaked > LEAK_LIMIT:
terminalreporter.write('LEAKED {}MB in {}\n'.format(
leaked / 1024 / 1024, nodeid))
round(leaked / 1024 / 1024, 2), nodeid))
terminalreporter.write('MEMORY ENDED AT: {}MB in {}\n'.format(
end_entry.consumed_ram / 1024 / 1024, nodeid))
round(end_entry.consumed_ram / 1024 / 1024, 2), nodeid))
except:
pass

0 comments on commit 2d441dc

Please sign in to comment.