Fix Markdown unit tests on Python 3.

Review Request #11767 — Created Aug. 1, 2021 and submitted

Information

Review Board
release-4.0.x

Reviewers

Djblets's render_markdown_from_file() was broken on Python 3, due to
some bad expectations on string types on a stream. Our unit tests for
our wrapper, introduced in release-3.0.x, were likewise using wrong
string types.

This change fixes up the unit tests to feed in byte string data instead
of Unicode text for the test.

Unit tests pass on Python 2 and 3.

Summary ID
Fix Markdown unit tests on Python 3.
Djblets's `render_markdown_from_file()` was broken on Python 3, due to some bad expectations on string types on a stream. Our unit tests for our wrapper, introduced in release-3.0.x, were likewise using wrong string types. This change fixes up the unit tests to feed in byte string data instead of Unicode text for the test.
4efc004ab3689ba4b42886abaca8ca32259f2092
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.0.x (1a57a3b)