Skip to content

Fix set_option() of timeout to handle -1 as infinity #90

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 3 commits into from
Dec 4, 2017

Conversation

tiran
Copy link
Member

@tiran tiran commented Dec 4, 2017

Also adds a bunch of tests for options.

@codecov
Copy link

codecov bot commented Dec 4, 2017

Codecov Report

Merging #90 into master will increase coverage by 1.24%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   66.48%   67.72%   +1.24%     
==========================================
  Files          48       48              
  Lines        4681     4676       -5     
  Branches      787      785       -2     
==========================================
+ Hits         3112     3167      +55     
+ Misses       1211     1151      -60     
  Partials      358      358
Impacted Files Coverage Δ
Modules/options.c 73.5% <100%> (+34.16%) ⬆️
Lib/slapdtest/_slapdtest.py 82.26% <0%> (+1.5%) ⬆️
Lib/ldap/controls/simple.py 65.38% <0%> (+1.92%) ⬆️
Lib/ldap/functions.py 75.55% <0%> (+2.22%) ⬆️
Lib/ldap/controls/openldap.py 53.33% <0%> (+3.33%) ⬆️
Modules/ldapcontrol.c 57.45% <0%> (+5.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5ad802...2aa8bca. Read the comment docs.

tiran and others added 3 commits December 4, 2017 13:36
OPT_TIMEOUT and OPT_NETWORK_TIMEOUT now support -1 to set default back
to infinity.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@encukou
Copy link
Member

encukou commented Dec 4, 2017

I split the first commit into two.
Also, I changed infinitive to infinity in some comments. (“Infinitive” is a completely unrelated term from linguistics; the adjective form would be “infinite”.)

@encukou encukou merged commit 5687863 into python-ldap:master Dec 4, 2017
@tiran tiran deleted the test_options branch December 4, 2017 12:51
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy