There is no need to avoid running the test.

Just set proper locale. Default is C.us-ascii, which breaks python's
str.encode().
This commit is contained in:
Matěj Cepl 2019-01-17 23:20:45 +01:00
parent 0de1af920d
commit 0616da7501
No known key found for this signature in database
GPG Key ID: 79205802880BC9D8
2 changed files with 1 additions and 16 deletions

View File

@ -1,12 +0,0 @@
diff -Naur -Naru prettytable-0.7.2.orig/prettytable_test.py prettytable-0.7.2/prettytable_test.py
--- prettytable-0.7.2.orig/prettytable_test.py 2013-04-06 23:43:12.000000000 +0000
+++ prettytable-0.7.2/prettytable_test.py 2014-01-07 18:49:26.017977139 +0000
@@ -582,7 +582,7 @@
def testPrint(self):
print()
- print(self.x)
+ #print(self.x)
if __name__ == "__main__":
unittest.main()

View File

@ -17,8 +17,6 @@ License: BSD
Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz
URL: http://pypi.python.org/pypi/PrettyTable
Patch0: disable-encoding-check.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
@ -63,8 +61,6 @@ a row range.
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
@ -81,6 +77,7 @@ popd
%endif
%check
export LANG=en_GB.utf8
%{__python} %{modname}_test.py
%if 0%{?with_python3}