# HG changeset patch # User RhodeCode Admin # Date 2023-03-27 19:39:33 # Node ID 07e90fe6d3b4fcdb9fff7080e0f948a8411dd322 # Parent e14a472917ade90816b9146aeb9045690a17fe02 tests: write proper bytes for test ini diff --git a/rhodecode/tests/vcs_operations/conftest.py b/rhodecode/tests/vcs_operations/conftest.py --- a/rhodecode/tests/vcs_operations/conftest.py +++ b/rhodecode/tests/vcs_operations/conftest.py @@ -34,6 +34,7 @@ import pytest import logging from rhodecode import events +from rhodecode.lib.str_utils import safe_bytes from rhodecode.model.db import Integration, UserRepoToPerm, Permission, \ UserToRepoBranchPermission, User from rhodecode.model.integration import IntegrationModel @@ -76,7 +77,7 @@ def rcextensions(request, db_connection, return request.addfinalizer(rcextensions_path.remove) - init_path.write_binary(init_content, ensure=True) + init_path.write_binary(safe_bytes(init_content), ensure=True) @pytest.fixture(scope="module")