1. 11 Jun, 2020 2 commits
    • moto's avatar
      Get rid of dynamic test suite generation (#716) · 08217121
      moto authored
      `type` used in `common_utils` generates test class definition in `common_utils` and
      this modifies the module state after it's imported. This is anti-pattern.
      This PR get rid of the related utility functions and define test suite manually.
      08217121
    • moto's avatar
      Change parameterized testing system to be compatible with unittest (#712) · d2724481
      moto authored
      
      
      * Change parameterized testing system to be compatible with unittest
      
      Summary: The previous implementation of parameterized testing worked by modifying test.common_utils inplace.  This doesn't work in general because unittest's contract with test modules is such that it must be able to load the module and run the test itself.  Because the previous implementation needed to load the module and modify it, it is incompatible.
      
      Reviewed By: mthrok
      
      Differential Revision: D21964676
      Co-authored-by: default avatarBen Mehne <bmehne@fb.com>
      d2724481
  2. 27 May, 2020 1 commit
  3. 15 May, 2020 1 commit
    • moto's avatar
      Split CUDA and CPU tests of torchscript_consistency (#644) · c960b119
      moto authored
      Currently there is no CUDA device for regular FB's infra, where `torchaudio`'s tests are ran.
      Skipping these tests consistently raises a flag so we decided to split the tests into runnable and not-runnable on file-level.
      c960b119