Ignore:
Timestamp:
Nov 2, 2018, 10:13:56 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
2e005cc
Parents:
8607a74
Message:

[tests] use run_module_suite so tests can run when pytest is not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/_tools.py

    r8607a74 r7fd92ca  
    2222    skipTest = pytest.skip
    2323    _has_pytest = True
     24    def run_module_suite():
     25        import sys, pytest
     26        pytest.main(sys.argv)
    2427except:
    2528    pass
     
    3235    def skipTest(msg):
    3336        raise SkipTest(msg)
     37    from numpy.testing import run_module_suite
    3438
    3539# always use numpy's assert_equal
Note: See TracChangeset for help on using the changeset viewer.