Skip to content

Return result of a deferred call#62

Closed
SUNx2YCH wants to merge 1 commit intohamcrest:masterfrom
SUNx2YCH:raises_fix
Closed

Return result of a deferred call#62
SUNx2YCH wants to merge 1 commit intohamcrest:masterfrom
SUNx2YCH:raises_fix

Conversation

@SUNx2YCH
Copy link
Copy Markdown

In my custom matcher based on Raises I need a deferred call result to create a meaningful mismatch description (when there was no exception raised). That's why I think that DeferredCallable.__call__() should have a return statement.
I'm pretty sure that this change will not break anything.
Also I have removed a couple of unused imports.

@SUNx2YCH
Copy link
Copy Markdown
Author

There is an issue with py32 env:
https://bitbucket.org/ned/coveragepy/issues/407/coverage-failing-on-python-325-using
Will try to fix it.

@SUNx2YCH
Copy link
Copy Markdown
Author

It turns out that pip 8 also dropped support for Python 3.2: travis-ci/travis-ci#5485
That was the main reason of py32 env fail.

@offbyone
Copy link
Copy Markdown
Member

offbyone commented Mar 5, 2016

I'm going to revisit Python 2.6 support before merging this. Probably do that this weekend.

@SUNx2YCH
Copy link
Copy Markdown
Author

SUNx2YCH commented Mar 5, 2016

BTW, py32 env could be fixed by downgrading virtualenv and coverage:
https://travis-ci.org/SUNx2YCH/PyHamcrest/builds/112275490
I can create a pull request if you choose to continue with Python 3.2 support.

@offbyone
Copy link
Copy Markdown
Member

offbyone commented Mar 5, 2016

Thanks, I'll just do the downgrade as part of the merge.

@offbyone
Copy link
Copy Markdown
Member

offbyone commented Mar 5, 2016

Pushed as 1.9.0

@offbyone offbyone closed this Mar 5, 2016
@SUNx2YCH
Copy link
Copy Markdown
Author

SUNx2YCH commented Mar 6, 2016

Thanks!

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 96.085% when pulling d37dbc0 on SUNx2YCH:raises_fix into a9718b2 on hamcrest:master.

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.

3 participants