diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2015-01-24 19:26:18 -0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2015-01-24 19:26:18 -0800 |
commit | 23487ef46988e971aae9abb4f4189d9e1aaa3a88 (patch) | |
tree | c7554dc274558e2be0e723f290ab4c1375cce0ef /Python/thread.c | |
parent | 1a091835d645e2b82d0396c6bce5a98d393bf683 (diff) | |
parent | 1ca81556d041f7ba63c5b55a221f244650f2ee9a (diff) | |
download | cpython-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.c | 2 |
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(); |