From 7c8d5d2309b2201b14c7158f2b082501124bbf6a608a206befdfa98a5a262af0 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 9 Jul 2019 11:55:46 +0000 Subject: [PATCH] - Fix Tests for Leap 15.1: click requires UTF-8 locale. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=21 --- python-textX.changes | 5 +++++ python-textX.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-textX.changes b/python-textX.changes index c8079f9..00d43c7 100644 --- a/python-textX.changes +++ b/python-textX.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 9 11:53:21 UTC 2019 - Sebastian Wagner + +- Fix Tests for Leap 15.1: click requires UTF-8 locale. + ------------------------------------------------------------------- Sat Jun 8 14:09:51 UTC 2019 - Sebastian Wagner diff --git a/python-textX.spec b/python-textX.spec index fede626..5e119b1 100644 --- a/python-textX.spec +++ b/python-textX.spec @@ -101,7 +101,9 @@ popd %check export PYTHONDONTWRITEBYTECODE=1 -PATH=$PATH:%{buildroot}%{_bindir} %pytest +export LC_ALL=C.UTF-8 +export PATH=$PATH:%{buildroot}%{_bindir} +%pytest %python_expand rm -r %{buildroot}%{$python_sitelib}/data_dsl* %python_expand rm -r %{buildroot}%{$python_sitelib}/flow_codegen* %python_expand rm -r %{buildroot}%{$python_sitelib}/flow_dsl*