Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/source_code_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def get_example_source_code_path(in_example_id, in_language_id):
def read_example_source_code(in_example_id, in_language_id):
"""reads given source code into a string"""
example_path = get_example_source_code_path(in_example_id, in_language_id)
with open(example_path, "r", encoding="utf-8") as file:
return file.read()
return example_path.read_text(encoding="utf-8")


def get_full_examples():
Expand Down
Loading