diff options
| author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-03-11 10:10:10 -0700 |
|---|---|---|
| committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-03-11 10:10:10 -0700 |
| commit | bc87edd3d8df7c5bd4c8d267c626f4fd22ef7443 (patch) | |
| tree | 32a0402dd3f157add95a4a4dce594b6abc2b5a80 | |
| parent | 0c425da09d966bafd2f4043fa8919f3da4d8abc4 (diff) | |
| download | pyramid-bc87edd3d8df7c5bd4c8d267c626f4fd22ef7443.tar.gz pyramid-bc87edd3d8df7c5bd4c8d267c626f4fd22ef7443.tar.bz2 pyramid-bc87edd3d8df7c5bd4c8d267c626f4fd22ef7443.zip | |
Convert from u prefix to byte string and decode
because the u prefix is not supported in Python 3.2
| -rw-r--r-- | pyramid/tests/test_integration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/tests/test_integration.py b/pyramid/tests/test_integration.py index 48199c419..0ab18de7a 100644 --- a/pyramid/tests/test_integration.py +++ b/pyramid/tests/test_integration.py @@ -652,8 +652,8 @@ class UnicodeInURLTest(unittest.TestCase): return TestApp(app) def test_unicode_in_url_404(self): - request_path = '/avalia%C3%A7%C3%A3o_participante/' - request_path_unicode = u'/avalia\xe7\xe3o_participante/' + request_path = '/avalia%C3%A7%C3%A3o_participante' + request_path_unicode = b'/avalia\xc3\xa7\xc3\xa3o_participante'.decode('utf-8') config = self._makeConfig() testapp = self._makeTestApp(config) @@ -663,7 +663,7 @@ class UnicodeInURLTest(unittest.TestCase): def test_unicode_in_url_200(self): request_path = '/avalia%C3%A7%C3%A3o_participante' - request_path_unicode = u'/avalia\xe7\xe3o_participante' + request_path_unicode = b'/avalia\xc3\xa7\xc3\xa3o_participante'.decode('utf-8') def myview(request): return 'XXX' |
