test: restore Python 3.2 compatibility
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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.
authored by Martin Geisler · committed by Martin Geisler · parent f4d1bbb · Browse files · 1 file+14 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+14 added−6 removed
- other:+14 added−6 removed