tests: changed mocked "file()" to mocked "open()" (#36216)

This commit is contained in:
Frédéric Péters 2019-09-18 11:04:35 +02:00
parent 2b3d15c97e
commit 269d794048
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ LANGUAGE_CODE = 'en-us'
PROJECT_NAME = 'multipublik'
with patch.object(builtin, 'file', mock_open(read_data='xxx')):
with patch.object(builtin, 'open', mock_open(read_data='xxx')):
execfile(os.path.join(os.path.dirname(__file__), '../debian/debian_config_common.py'))
BRANCH_NAME = os.environ.get("BRANCH_NAME", "").replace('/', '-')