galsci / mapsims

Map based simulations software for CMB Experiments
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

py.test gives an astropy_helpers related error #3

Closed msyriac closed 5 years ago

msyriac commented 5 years ago
$ py.test
================================================================ test session starts ================================================================
platform linux -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /global/u2/m/msyriac/repos/mapsims, inifile: setup.cfg
plugins: remotedata-0.2.1, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2
collected 35 items / 1 errors                                                                                                                       

====================================================================== ERRORS =======================================================================
________________________________________ ERROR collecting astropy_helpers/astropy_helpers/commands/_dummy.py ________________________________________
astropy_helpers/astropy_helpers/commands/_dummy.py:69: in __getattribute__
    raise DistutilsArgError(cls.error_msg)
astropy_helpers/astropy_helpers/commands/_dummy.py:67: in __getattribute__
    return super(_DummyCommandMeta, cls).__getattribute__(attr)
E   AttributeError: type object '_DummyCommand' has no attribute 'error_msg'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================== 1 error in 2.07 seconds ==============================================================

What test framework should we use? I like py.test.

zonca commented 5 years ago

you can run the tests with python setup.py test

msyriac commented 5 years ago

Ok, that works, thanks.

zonca commented 5 years ago

under the hood uses py.test but needs to add some configuration on top