Skip to content

Conversation

@forsberg
Copy link

Description

Fixes #674

Based on #673, or Travis will fail. Will happily rebase onto master once #672 is fixed.

Reorganizes tox a bit, using --import-mode append when running py.test, as before, the compiled (Cython versions) of modules were not actually tested in the Cython stage on Travis - reason being that due to faust not using a src/ directory layout, unit tests will import faust from the faust/ directory in the git clone, rather than from the version installed in the tox virtualenv.

Previously, the cython stage in Travis would build (I think) but not use the .so files during
testing, because of how py.test adds the current working directory to sys.path - the
.so files would be installed in the tox virtualenv, but python would import faust
from the faust/ directory under the git clone.

This made tests that would otherwise fail with the Cython implementation pass, as they
were testing the (pure) python implementation of modules.

Also adds one test under t/cython that will fail if we can't import a cythonized module,
ensuring we get a proper warning if we have an incorrect test environment.
@CLAassistant
Copy link

CLAassistant commented Sep 21, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cython implementation of HoppingWindow.ranges returns tuples with (int, float)

2 participants