memory_profiler is an undeclared dependency
bsipocz opened this issue · 0 comments
bsipocz commented
There is an error on test collection if one doesn't relies on the pytest flag of doctest_ignore_import_error
. It has been done so in the astropy pytest-doctestplus
plugin, but in the attempt of converging the pluging's behaviour to the default pytest doctest one we consider not ignoring this errors any more.
I can open a workaround PR to the test config, but ideally the maintainers should decide the best way to deal with this dependency.
(test_imports) $ ~/munka/devel/ccdproc [hacking|…1⚑ 1] $ pytest ccdproc
================================================= test session starts ==================================================
platform darwin -- Python 3.8.2, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
Running tests with ccdproc version 2.1.1.dev1+gb9ec64d.
Running tests in ccdproc.
Date: 2020-04-30T19:49:39
Platform: macOS-10.13.6-x86_64-i386-64bit
Executable: /Users/bsipocz/miniconda/envs/test_imports/bin/python
Full Python Version:
3.8.2 (default, Mar 26 2020, 10:43:30)
[Clang 4.0.1 (tags/RELEASE_401/final)]
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15
Package versions:
Numpy: 1.18.3
Scipy: 1.4.1
Matplotlib: 3.2.1
Pandas: not available
Astropy: 4.0.1.post1
astroscrappy: 1.0.8
reproject: 0.7
astropy-helpers: 4.0.1
Using Astropy options: remote_data: none.
rootdir: /Users/bsipocz/munka/devel/ccdproc, inifile: setup.cfg
plugins: arraydiff-0.3, remotedata-0.3.2, hypothesis-5.10.4, filter-subpackage-0.1.1, openfiles-0.5.0, astropy-header-0.1.2, cov-2.8.1, doctestplus-0.7.0.dev0
collected 305 items / 1 error / 304 selected
======================================================== ERRORS ========================================================
_______________________________ ERROR collecting ccdproc/tests/run_for_memory_profile.py _______________________________
ccdproc/tests/run_for_memory_profile.py:8: in <module>
from memory_profiler import memory_usage
E ModuleNotFoundError: No module named 'memory_profiler'
=============================================== short test summary info ================================================
ERROR ccdproc/tests/run_for_memory_profile.py - ModuleNotFoundError: No module named 'memory_profiler'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================== 1 error in 0.67s ===================================================