Skip to content
Snippets Groups Projects
Unverified Commit 3c18d2a0 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

py-torch: make sure unit tests are registered (#15765)

parent 3f50b9e0
Branches
Tags
No related merge requests found
......@@ -287,9 +287,11 @@ def enable_or_disable(variant, keyword='USE', var=None, newer=False):
enable_or_disable('zstd', newer=True)
enable_or_disable('tbb', newer=True)
def test(self):
pass
def install_test(self):
with working_dir('test'):
python('run_test.py')
# Tests need to be re-added since `phases` was overridden
run_after('install')(
PythonPackage._run_default_install_time_test_callbacks)
run_after('install')(PythonPackage.sanity_check_prefix)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment