eshad / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

DeprecationWarning and ResourceWarnings with Python 3.2 #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ python3.2 httplib2test.py
....httplib2test.py:1452: DeprecationWarning: Please use assertEqual instead.
  self.assertEquals(0, len(end2end))
.............................../tmp/httplib2/python3/httplib2/__init__.py:716: 
DeprecationWarning: the 'strict' argument isn't supported anymore; http.client 
now always assumes HTTP/1.x compliant servers.
  http.client.HTTPConnection.__init__(self, host, port, strict, timeout)
/tmp/httplib2/python3/httplib2/__init__.py:733: ResourceWarning: unclosed 
<socket.socket object, fd=3, family=2, type=1, proto=6>
  self.sock = socket.socket(af, socktype, proto)
.................../usr/lib64/python3.2/http/client.py:1075: 
DeprecationWarning: the 'strict' argument isn't supported anymore; http.client 
now always assumes HTTP/1.x compliant servers.
  source_address)
/tmp/httplib2/python3/httplib2/__init__.py:733: ResourceWarning: unclosed 
<socket.socket object, fd=21, family=2, type=1, proto=6>
  self.sock = socket.socket(af, socktype, proto)
...................../usr/lib64/python3.2/unittest/case.py:387: 
ResourceWarning: unclosed <socket.socket object, fd=43, family=2, type=1, 
proto=6>
  function()
......E./tmp/httplib2/python3/httplib2/__init__.py:733: ResourceWarning: 
unclosed <socket.socket object, fd=47, family=2, type=1, proto=6>
  self.sock = socket.socket(af, socktype, proto)
...../tmp/httplib2/python3/httplib2/__init__.py:733: ResourceWarning: unclosed 
<socket.socket object, fd=52, family=2, type=2049, proto=6>
  self.sock = socket.socket(af, socktype, proto)
/usr/lib64/python3.2/unittest/case.py:387: ResourceWarning: unclosed 
<socket.socket object, fd=54, family=2, type=2049, proto=6>
  function()
./tmp/httplib2/python3/httplib2/__init__.py:733: ResourceWarning: unclosed 
<socket.socket object, fd=52, family=2, type=1, proto=6>
  self.sock = socket.socket(af, socktype, proto)
........./usr/lib64/python3.2/email/header.py:321: ResourceWarning: unclosed 
<socket.socket object, fd=47, family=10, type=1, proto=6>
  for string, charset in self._chunks:
........

Original issue reported on code.google.com by Arfrever...@gmail.com on 7 Apr 2011 at 5:16

GoogleCodeExporter commented 9 years ago
All but 2 of these are fixed.

Original comment by joe.gregorio@gmail.com on 13 Jun 2011 at 2:26