aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pathlib/support/local_path.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib/support/local_path.py')
-rw-r--r--Lib/test/test_pathlib/support/local_path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pathlib/support/local_path.py b/Lib/test/test_pathlib/support/local_path.py
index 4f027754f6a..d481fd45ead 100644
--- a/Lib/test/test_pathlib/support/local_path.py
+++ b/Lib/test/test_pathlib/support/local_path.py
@@ -82,7 +82,7 @@ class LocalPathGround:
readlink = staticmethod(os.readlink)
def readtext(self, p):
- with open(p, 'r') as f:
+ with open(p, 'r', encoding='utf-8') as f:
return f.read()
def readbytes(self, p):