diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-01-23 10:04:31 +0100 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2022-01-23 07:14:49 -0800 |
| commit | dc32d54c49ccc58c01cd436346a3fbfd4a538778 (patch) | |
| tree | dfce87b5e50f49229bd3ff5d62c2d26618046409 /tests/unit/objects | |
| parent | 618267ced7aaff46d8e03057fa0cab48727e5dc0 (diff) | |
| download | gitlab-dc32d54c49ccc58c01cd436346a3fbfd4a538778.tar.gz | |
chore: consistently use open() encoding and file descriptor
Diffstat (limited to 'tests/unit/objects')
| -rw-r--r-- | tests/unit/objects/test_todos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/objects/test_todos.py b/tests/unit/objects/test_todos.py index ded6cf9..cee8d01 100644 --- a/tests/unit/objects/test_todos.py +++ b/tests/unit/objects/test_todos.py @@ -12,8 +12,8 @@ from gitlab.v4.objects import Todo @pytest.fixture() def json_content(fixture_dir): - with open(fixture_dir / "todo.json", "r") as json_file: - todo_content = json_file.read() + with open(fixture_dir / "todo.json", "r", encoding="utf-8") as f: + todo_content = f.read() return json.loads(todo_content) |
