aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py4
-rw-r--r--tests/test_from_fixtures.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 170e003..d51c902 100644
--- a/setup.py
+++ b/setup.py
@@ -6,10 +6,10 @@ packages = [
'uritemplate'
]
-with open("README.rst") as file:
+with open("README.rst", encoding="utf-8") as file:
readme = file.read()
-with open("HISTORY.rst") as file:
+with open("HISTORY.rst", encoding="utf-8") as file:
history = file.read()
setup(
diff --git a/tests/test_from_fixtures.py b/tests/test_from_fixtures.py
index c21d395..4b92081 100644
--- a/tests/test_from_fixtures.py
+++ b/tests/test_from_fixtures.py
@@ -12,7 +12,7 @@ def fixture_file_path(filename):
def load_examples(filename):
path = fixture_file_path(filename)
- with open(path, 'r') as examples_file:
+ with open(path, 'r', encoding="utf-8") as examples_file:
examples = json.load(examples_file)
return examples