Skip to content
Myr

Temporary fix for unicode literal breaking test.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent bcf04d5 · Browse files · 1 file+8 added−1 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+8 added−1 removed

  • tests:+8 added−1 removed

1 file+8 added−1 removed

modified:tests/test_requests.py+8 added-1 removed
349 unmodified lines
350351 post5 = post(url, files={'file': ('file.txt', 'more fdata')})352 self.assertEqual(post5.status_code, 200)353354 # Dirty hack to tide us over until 3.3.355 # TODO: Remove this hack when Python 3.3 is released.356 if (sys.version_info[0] == 2):357 fdata = '\xc3\xa9'.decode('utf-8')358 else:359 fdata = '\xe9'360354 post6 = post(url, files={'fname.txt': '\xe9'})361 post6 = post(url, files={'fname.txt': fdata})362 self.assertEqual(post6.status_code, 200)363364 post7 = post(url, files={'fname.txt': 'fdata to verify'})365 rbody = json.loads(post7.text)
591 unmodified lines