Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 90fe65d4 authored by hhakim's avatar hhakim
Browse files

Fix pyfaust.tests launching melting field and dtype.

parent 5faf8524
No related branches found
No related tags found
No related merge requests found
......@@ -728,7 +728,7 @@ test_linux_pkg_release:
- $JOB_PYTHON -m pip install --upgrade build/wrapper/python/dist/${PYFAUST_PKG_NAME}-$CI_COMMIT_TAG-*$PYVER*$SYS*.whl
- $JOB_PYTHON -c "import pyfaust; print(pyfaust.version()); print(pyfaust.rand(5,5).toarray());"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'double')"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'float')"
- $JOB_PYTHON -c "import pyfaust.tests; pyfaust.tests.run_tests('cpu', 'float32')"
only:
- tags
......@@ -791,7 +791,7 @@ test_win_purepy_pkg:
- python -m pip install %PKG_NAME%
- python -c "import pyfaust; print(pyfaust.version()); print(pyfaust.rand(5,5).toarray());"
- python -c "import pyfaust.tests; pyfaust.tests.run_tests(\"cpu\", \"double\")"
- python -c "import pyfaust.tests; pyfaust.tests.run_tests(\"cpu\", \"float\")"
- python -c "import pyfaust.tests; pyfaust.tests.run_tests(\"cpu\", \"float32\")"
needs:
- job: pkg_win_purepy_release
artifacts: true
......
......@@ -37,7 +37,12 @@ class TestFaust(unittest.TestCase):
TestFaust.MAX_DIM_SIZE+1)
nfacts = randint(TestFaust.MIN_NUM_FACTORS,
TestFaust.MAX_NUM_FACTORS+1)
self.F = frand(nrows, ncols, num_factors=nfacts, dev=self.dev, field=self.field)
dtype = 'double'
if self.field not in ['real', 'complex']:
dtype = self.field
self.field = 'real'
self.F = frand(nrows, ncols, num_factors=nfacts, dev=self.dev,
field=self.field, dtype=dtype)
self.nrows = nrows
self.ncols = ncols
self.nfacts = nfacts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment