mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
1. Inherit from TestCase 2. Use pytorch parametrization 3. Use unittest.expectedFailure to mark xfails, also unittest skips All this to make pytest-less invocation work: $ python test/torch_np/test_basic.py cross-ref #109593, #109718, #109775 Pull Request resolved: https://github.com/pytorch/pytorch/pull/109815 Approved by: https://github.com/lezcano |
||
|---|---|---|
| .. | ||
| numpy_tests | ||
| __init__.py | ||
| check_tests_conform.py | ||
| conftest.py | ||
| test_basic.py | ||
| test_binary_ufuncs.py | ||
| test_dtype.py | ||
| test_function_base.py | ||
| test_ndarray_methods.py | ||
| test_nep50_examples.py | ||
| test_random.py | ||
| test_reductions.py | ||
| test_scalars_0D_arrays.py | ||
| test_ufuncs_basic.py | ||
| test_unary_ufuncs.py | ||