pytorch/test/torch_np
Evgeni Burovski 132a138a01 MAINT: pytorchify torch._numpy tests: core/ and fft/ (#109815)
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
2023-09-26 11:04:24 +00:00
..
numpy_tests MAINT: pytorchify torch._numpy tests: core/ and fft/ (#109815) 2023-09-26 11:04:24 +00:00
__init__.py
check_tests_conform.py MAINT: pytorchify torch._numpy tests: core/ and fft/ (#109815) 2023-09-26 11:04:24 +00:00
conftest.py
test_basic.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_binary_ufuncs.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_dtype.py TST: pytorchify test/torch_np/test_dtype.py (#109967) 2023-09-24 13:34:02 +00:00
test_function_base.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_ndarray_methods.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_nep50_examples.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_random.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_reductions.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_scalars_0D_arrays.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_ufuncs_basic.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00
test_unary_ufuncs.py MAINT/TST: pytorch-ify torch._numpy tests (added tests only, not vendored) (#109593) 2023-09-23 18:18:50 +00:00