Monkey-patch httpretty for Python3 support
This fix is in the httpretty codebase, but not yet released
This commit is contained in:
parent
af4260937f
commit
6387877e48
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import json
|
import json
|
||||||
import httpretty
|
import httpretty
|
||||||
|
|
||||||
|
# TEMP: Temporary hack until httpretty string checking is fixed
|
||||||
|
if httpretty.compat.PY3:
|
||||||
|
httpretty.core.basestring = (bytes, str)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import unittest2 as unittest # Python2.6
|
import unittest2 as unittest # Python2.6
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue