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
|
||||
import json
|
||||
import httpretty
|
||||
|
||||
# TEMP: Temporary hack until httpretty string checking is fixed
|
||||
if httpretty.compat.PY3:
|
||||
httpretty.core.basestring = (bytes, str)
|
||||
|
||||
try:
|
||||
import unittest2 as unittest # Python2.6
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue