From 2e2f56d596f7d78f4f3ed9eee36e2a25331538b9 Mon Sep 17 00:00:00 2001 From: Stavros Efthymiou <35475381+stavros11@users.noreply.github.com> Date: Thu, 13 Jan 2022 13:37:49 +0400 Subject: [PATCH] Fix test_prints when cuquantum is installed --- src/qibo/tests/test_prints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibo/tests/test_prints.py b/src/qibo/tests/test_prints.py index f41e190d0e..082e17443d 100644 --- a/src/qibo/tests/test_prints.py +++ b/src/qibo/tests/test_prints.py @@ -17,7 +17,7 @@ def __init__(self, code, filedir=None): @classmethod def from_file(cls, filedir): assert filedir[-3:] == ".py" - with open(filedir, "r") as file: + with open(filedir, "r", encoding="utf-8") as file: code = file.read() return cls(code, filedir)