From d14f86b0d734ee1350d73918f3a0b33dbae9cfab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 1 May 2018 13:03:41 +0200 Subject: [PATCH] Coerce locale to UTF-8 encoding when running tests Since 2.7.15, there is a test that shutil.copies to unicode filename. --- python2.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python2.spec b/python2.spec index d3b3afd..b08bdaf 100644 --- a/python2.spec +++ b/python2.spec @@ -1529,6 +1529,10 @@ CheckPython() { %if %{with tests} +# no locale coercion in python2 +# test_ssl:test_load_dh_params shutil.copies into unicode filename +export LC_ALL=C.utf-8 + # Check each of the configurations: %if %{with debug_build} CheckPython \