summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2015-01-24 19:26:18 -0800
committerSenthil Kumaran <senthil@uthcode.com>2015-01-24 19:26:18 -0800
commit23487ef46988e971aae9abb4f4189d9e1aaa3a88 (patch)
treec7554dc274558e2be0e723f290ab4c1375cce0ef /Python/thread.c
parent1a091835d645e2b82d0396c6bce5a98d393bf683 (diff)
parent1ca81556d041f7ba63c5b55a221f244650f2ee9a (diff)
downloadcpython-23487ef46988e971aae9abb4f4189d9e1aaa3a88.tar.gz
merge from 3.4
Increase http.client.HTTPConnection test coverage. Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 4e695aeca2..44c071eafe 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -431,7 +431,7 @@ PyThread_GetInfo(void)
&& defined(_CS_GNU_LIBPTHREAD_VERSION))
value = NULL;
len = confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer));
- if (1 < len && len < sizeof(buffer)) {
+ if (1 < len && (size_t)len < sizeof(buffer)) {
value = PyUnicode_DecodeFSDefaultAndSize(buffer, len-1);
if (value == NULL)
PyErr_Clear();