Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #674 by explicitly setting return type to float in Cython version of HoppingWindow.ranges() #675

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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

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.


Erik Forsberg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
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