mamaduckmaster / httplib2

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

Tests fail with CPython-3.* (AttributeError: 'module' object has no attribute 'message_from_bytes') #189

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the build and run the tests with CPython-3.*
2. Watch it implode!

What is the expected output? What do you see instead?

Expected the tests would run fine with CPython-3.* Instead you get a bunch of 
error, such as:

ERROR: testVaryUnusedHeader (__main__.HttpTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "httplib2test.py", line 712, in testVaryUnusedHeader
    'Accept': 'text/plain',})
  File "/var/tmp/portage/dev-python/httplib2-0.7.2/work/httplib2-0.7.2/python3/httplib2/__init__.py", line 1079, in request
    info = email.message_from_bytes(info)
AttributeError: 'module' object has no attribute 'message_from_bytes'

What version of the product are you using? On what operating system?
httplib2-0.7.2 - running in Gentoo Linux

Original issue reported on code.google.com by jesus.ri...@gmail.com on 30 Nov 2011 at 3:32

GoogleCodeExporter commented 8 years ago
httplib2 supports Python >=3.2, but not 3.0 or 3.1. You seem to use 3.1.

Original comment by Arfrever...@gmail.com on 30 Nov 2011 at 9:55

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 28 Aug 2012 at 3:23