• Vincent Pelletier's avatar
    caucase.http: Fix server_version encoding for py2.7 . · ff8eafca
    Vincent Pelletier authored
    Work around what should be a test-only issue, where versioneer produces
    a unicode object for the module's version (by decoding a json object,
    whose strings become unicode objects). Python 2.7's BaseHttpServer does
    not encode the response in such case, causing a test failure when writing
    to wfile, set to be a BytesIO object.
    I guess some magic encoding happens on a real socket, likely to ascii.
    ff8eafca
http.py 38.4 KB