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 cython error on travis #1675

Merged
merged 3 commits into from
Sep 26, 2017
Merged

fix cython error on travis #1675

merged 3 commits into from
Sep 26, 2017

Conversation

kain88-de
Copy link
Member

Fixes #

Changes made in this Pull Request:

  • fix block_imported tests importing cython modules

https://groups.google.com/forum/#!topic/cython-users/tQlwfcpdf0k

The tests fall for python 3.5> on travis now for unrelated changes. I don't really know why this happens now but it seems related to the last cython update.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

This fixes a pickle error we have seen with recent versions of cython
and our mocked imports. cython now introduced special reduce and setstate
functions to enable cross python pickling for simple classes. It also tried to
do this for some encore classes that only had a run method and would overwrite
the `__call__` special method. So lets make them function right away.
@kain88-de
Copy link
Member Author

@mtiberti & @wouterboomsma

Could you have a look as well. The tests pass on my laptop. I assume they will also pass on travis. This currently blocks all other PR's since the functions cause failures of the builds due to a cython update.

@kain88-de kain88-de changed the title do not pickle affinityprop.pyx fix cython error on travis Sep 25, 2017
@kain88-de
Copy link
Member Author

@richardjgowers could you also have a look.

@kain88-de kain88-de mentioned this pull request Sep 26, 2017
4 tasks
@mtiberti
Copy link
Contributor

Hi, looks good to me. I just gave it a go on my local workstation (Python 3.5.3, Cython 0.27) and tests pass.

@kain88-de
Copy link
Member Author

@mtiberti it would be nice if you can give a approve seal on github. Unless someone else does this I'm not allowed to hit the squash and merge button

@kain88-de kain88-de merged commit 3ef4196 into develop Sep 26, 2017
@kain88-de kain88-de deleted the fix-cython-error branch September 26, 2017 13:32
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.

2 participants