test: restore Python 3.2 compatibility
authorMartin Geisler <martin@geisler.net>
Sun, 25 May 2014 22:31:10 +0000 (00:31 +0200)
committerMartin Geisler <martin@geisler.net>
Mon, 26 May 2014 14:20:39 +0000 (16:20 +0200)
commitc8916a08deb8be25d2be38c646fab9b2ab1fb8f7
tree6e08ab4d183dc07a1c05039351f62b69d1cf835a
parentf4d1bbb7c549e1e276e61fa6390f9b5ce761c0ae
test: restore Python 3.2 compatibility

The tests were broken because they used the u'...' Unicode literal
syntax which disappeared in Python 3.0 to 3.2.

We can work around this by conditionally defining a "u" function which
will produce a Unicode literal on Python 2.x. This is basically the
same approach as taken by the six library often used for writing
cross-version compatible code.
test_requests.py