Skip to content

Unused TCP port factory fixture. Bump to 0.2.0. #14

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

Merged
merged 2 commits into from
Aug 2, 2015

Conversation

Tinche
Copy link
Member

@Tinche Tinche commented Aug 1, 2015

I've decided to simplify the new fixture a little; now it's a callable which returns a different port each invocation.

@nicoddemus Could you please do a small review before merging?

def factory():
port = unused_tcp_port()
while port in produced:
port = unused_tcp_port
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be port = unused_tcp_port().

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Of course the bug is in the section not tested. I'll add a test and get coverage up to 100%.

@nicoddemus
Copy link
Member

Hmm coverage has decresed by 2%, but I can't access the source when I try to access coveralls...

@nicoddemus
Copy link
Member

Looks good to me, nice work! 😄

@nicoddemus
Copy link
Member

(Not sure if I was supposed to merge it)

nicoddemus added a commit that referenced this pull request Aug 2, 2015
Unused TCP port factory fixture. Bump to 0.2.0.
@nicoddemus nicoddemus merged commit 34af0a1 into master Aug 2, 2015
@nicoddemus nicoddemus deleted the unused_tcp_port_factory branch August 2, 2015 04:57
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