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:
parent
0de1af920d
commit
0616da7501
@ -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()
|
|
@ -17,8 +17,6 @@ License: BSD
|
|||||||
Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz
|
||||||
URL: http://pypi.python.org/pypi/PrettyTable
|
URL: http://pypi.python.org/pypi/PrettyTable
|
||||||
|
|
||||||
Patch0: disable-encoding-check.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
@ -63,8 +61,6 @@ a row range.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
@ -81,6 +77,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export LANG=en_GB.utf8
|
||||||
%{__python} %{modname}_test.py
|
%{__python} %{modname}_test.py
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
Loading…
Reference in New Issue
Block a user