• Edward Z. Yang's avatar
    Make test scripts runnable without being modules. (#186) · 07b9b9ba
    Edward Z. Yang authored
    
    
    This makes it easier to test against an installed wheel, as the
    torchaudio folder is no longer preferentially picked up when
    you run a test module.
    
    I had to move all tests in subfolders into the top level test
    directory to make this work, since you can't access .. modules
    without mucking around with sys.path (which I don't want to do.)
    
    NB: this BREAKS the syntax where you can run a test by
    saying `python -m test.test`.  Instead, do `python test/test.py`
    or use the pytest runner.
    Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
    07b9b9ba
__init__.py 0 Bytes