Skip to content

Commit 125356c

Browse files
committed
test: fix UnicodeDecodeError on Windows by using utf-8 encoding
1 parent bf27612 commit 125356c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_notebook_integrity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_notebook_execution(notebook_path: str) -> None:
3939
if not path.exists():
4040
pytest.skip(f"Notebook {notebook_path} not found")
4141

42-
with open(path) as f:
42+
with open(path, encoding="utf-8") as f:
4343
nb = nbformat.read(f, as_version=4)
4444

4545
client = NotebookClient(nb, timeout=60, kernel_name="python3")

0 commit comments

Comments
 (0)