fix tests

This commit is contained in:
Caolan McNamara 2010-07-05 12:36:29 +00:00
parent 290fb7ef39
commit 86cc6154da
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,14 @@
--- tests/runtest.py 2010-07-05 12:55:25.000000000 +0100
+++ tests/runtest.py 2010-07-05 12:56:46.000000000 +0100
@@ -18,9 +18,9 @@
hunspell_cmd = './hunspell'
else:
hunspell_cmd = 'hunspell'
- hunspell = subprocess.Popen([hunspell_cmd, '-d', '../ko'],
+ hunspell = subprocess.Popen([hunspell_cmd, '-i', 'UTF-8', '-a', '-d', '../ko'],
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
- hunspell.stdout.readline() # the first line "Husnpell 1.2.8 ..."
+ hunspell.stdout.readline() # the first line "Hunspell 1.2.8 ..."
lineno = 0
errmsg = sys.stderr.write
for l in lines:

View File

@ -9,14 +9,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: MPLv1.1 or GPLv2 or LGPLv2 License: MPLv1.1 or GPLv2 or LGPLv2
BuildArch: noarch BuildArch: noarch
BuildRequires: python-lxml, hunspell BuildRequires: python-lxml, hunspell
Requires: hunspell Requires: hunspell
Patch0: hunspell-dict-ko-0.4.2-1278333282.fixtests.patch
%description %description
Korean hunspell dictionaries. Korean hunspell dictionaries.
%prep %prep
%setup -q -n hunspell-dict-ko-%{version} %setup -q -n hunspell-dict-ko-%{version}
%patch0 -p0 -b .fixtests
%build %build
make make