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
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ def _is_matter_base_test_class(
try:
abs_path = str(candidate.resolve())
if abs_path not in _module_cache:
with open(candidate, "r") as f:
_module_cache[abs_path] = ast.parse(f.read())
_module_cache[abs_path] = ast.parse(
candidate.read_text(encoding="utf-8")
)
imported_module = _module_cache[abs_path]

# Use the absolute path as the cycle-guard key so that
Expand Down
Loading