From 07007f2e6250f68217200e0c6966e35983487ac2 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 05 2019 15:53:49 +0000 Subject: Be explicit about the unicode string used as filename This allows the tests to pass on a CentOS7 container Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/__init__.py b/tests/__init__.py index 87ecac2..44479b0 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -779,9 +779,9 @@ def add_content_git_repo(folder, branch='master', append=None): with open(os.path.join(newfolder, subfolder, 'file'), 'w') as stream: stream.write('foo\n bar\nbaz') repo.index.add(os.path.join(subfolder, 'file')) - with open(os.path.join(newfolder, subfolder, 'fileŠ'), 'w') as stream: + with open(os.path.join(newfolder, subfolder, u'fileŠ'), 'w') as stream: stream.write('foo\n bar\nbaz') - repo.index.add(os.path.join(subfolder, 'fileŠ')) + repo.index.add(os.path.join(subfolder, u'fileŠ')) repo.index.write() # Commits the files added