Monkey-patch httpretty for Python3 support

This fix is in the httpretty codebase, but not yet released
This commit is contained in:
sneakypete81 2013-06-29 20:25:29 +01:00
parent af4260937f
commit 6387877e48

View file

@ -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: