Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test detection in Python 2. #21

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ CHANGES
1.10.2 (unreleased)
-------------------

- Nothing changed yet.
- Fix test detection in Python 2 which was broken since 1.10.0.
(`#20 <https://github.com/benji-york/manuel/issues/20>`_)


1.10.1 (2018-11-15)
Expand Down
2 changes: 1 addition & 1 deletion src/manuel/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def TestSuite(m, *paths, **kws):
contents = fp.read()
if not isinstance(contents, str):
# Python 2, we read unicode, but we really need a str
contents = str.encode("utf-8")
contents = contents.encode("utf-8")
document = manuel.Document(
contents, location=abs_path)
document.parse_with(m)
Expand Down