<86>Apr 21 00:50:41 userdel[83710]: delete user 'rooter' <86>Apr 21 00:50:41 groupadd[83729]: group added to /etc/group: name=rooter, GID=591 <86>Apr 21 00:50:41 groupadd[83729]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:50:41 groupadd[83729]: new group: name=rooter, GID=591 <86>Apr 21 00:50:41 useradd[83739]: new user: name=rooter, UID=591, GID=591, home=/root, shell=/bin/bash <86>Apr 21 00:50:41 userdel[83771]: delete user 'builder' <86>Apr 21 00:50:41 userdel[83771]: removed group 'builder' owned by 'builder' <86>Apr 21 00:50:41 groupadd[83791]: group added to /etc/group: name=builder, GID=592 <86>Apr 21 00:50:41 groupadd[83791]: group added to /etc/gshadow: name=builder <86>Apr 21 00:50:41 groupadd[83791]: new group: name=builder, GID=592 <86>Apr 21 00:50:41 useradd[83806]: new user: name=builder, UID=592, GID=592, home=/usr/src, shell=/bin/bash <13>Apr 21 00:50:45 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:50:45 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:50:45 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:50:45 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:50:45 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:45 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:50:45 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:50:45 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 00:50:45 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:50:46 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:50:46 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:50:46 groupadd[95784]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:50:46 groupadd[95784]: group added to /etc/gshadow: name=_keytab <86>Apr 21 00:50:46 groupadd[95784]: new group: name=_keytab, GID=499 <13>Apr 21 00:50:46 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:50:46 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:50:46 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:50:46 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:47 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:50:47 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:50:47 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:50:47 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:50:47 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:47 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:50:47 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:50:47 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:47 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:47 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:50:48 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:50:48 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:50:48 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-pycedict-0.9.1-alt1.git20150113.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.35949 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-pycedict-0.9.1 + echo 'Source #0 (python-module-pycedict-0.9.1.tar):' Source #0 (python-module-pycedict-0.9.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-pycedict-0.9.1.tar + cd python-module-pycedict-0.9.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/cedict/tests.py WARNING: couldn't encode ../python3/cedict/tests.py's diff for your terminal RefactoringTool: Refactored ../python3/cedict/pinyin.py WARNING: couldn't encode ../python3/cedict/pinyin.py's diff for your terminal RefactoringTool: Refactored ../python3/cedict/cedict_parser.py RefactoringTool: Refactored ../python3/cedict/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/cedict/tests.py RefactoringTool: ../python3/cedict/pinyin.py RefactoringTool: ../python3/cedict/cedict_parser.py RefactoringTool: ../python3/cedict/__init__.py --- ../python3/cedict/tests.py (original) +++ ../python3/cedict/tests.py (refactored) @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- import unittest -from StringIO import StringIO -from cedict_parser import iter_cedict -from pinyin import pinyinize, depinyinize +from io import StringIO +from .cedict_parser import iter_cedict +from .pinyin import pinyinize, depinyinize --- ../python3/cedict/pinyin.py (original) +++ ../python3/cedict/pinyin.py (refactored) @@ -5,12 +5,12 @@ TONE_MARKS = { --- ../python3/cedict/cedict_parser.py (original) +++ ../python3/cedict/cedict_parser.py (refactored) @@ -1,13 +1,13 @@ import os, gzip, re -CEDICT_LINE_REGEX = re.compile(ur'^(.*?)\s+(.*?)\s+\[(.*?)\]\s*(/.*/)\s*$', re.IGNORECASE) +CEDICT_LINE_REGEX = re.compile(r'^(.*?)\s+(.*?)\s+\[(.*?)\]\s*(/.*/)\s*$', re.IGNORECASE) VARIANT_DEF_REGEX = re.compile( - ur'(?P\w+)?\s*' - ur'(variant of|see also)\s*' - ur'(?P[^\\[a-z0-9\]\("]+?)\s*' - ur'(?P\|[^\\[a-z0-9\]\("]+?)?\s*' - ur'(?P\[[-a-z0-9,: ]+\])?$', re.IGNORECASE) + r'(?P\w+)?\s*' + r'(variant of|see also)\s*' + r'(?P[^\\[a-z0-9\]\("]+?)\s*' + r'(?P\|[^\\[a-z0-9\]\("]+?)?\s*' + r'(?P\[[-a-z0-9,: ]+\])?$', re.IGNORECASE) def _find_variants(defs): defs2 = [] @@ -61,11 +61,11 @@ defs2.append(d) else: for mw in d[3:].split(','): - m = re.search(ur'([^\|]+)(\|.+)?\[(.+)\]', mw) + m = re.search(r'([^\|]+)(\|.+)?\[(.+)\]', mw) if m is None: # did not match??? - m = re.search(ur'([^\|]+)(\|.+)?', mw) + m = re.search(r'([^\|]+)(\|.+)?', mw) if not m: # failed again without pinyin, giving up continue @@ -107,8 +107,8 @@ ch, chs, num_pinyin, defs = m.groups() # translate u: into v - defs = re.sub(ur'u:(\w)', ur'v\1', defs) - num_pinyin = re.sub(ur'u:(\w)', ur'v\1', num_pinyin) + defs = re.sub(r'u:(\w)', r'v\1', defs) + num_pinyin = re.sub(r'u:(\w)', r'v\1', num_pinyin) defs = defs[1:-1].split('/') defs, mwords = _find_measure_words(chs, num_pinyin, defs) --- ../python3/cedict/__init__.py (original) +++ ../python3/cedict/__init__.py (refactored) @@ -1,2 +1,2 @@ -from cedict_parser import iter_cedict -from pinyin import pinyinize, depinyinize +from .cedict_parser import iter_cedict +from .pinyin import pinyinize, depinyinize + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.35949 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-pycedict-0.9.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/cedict copying cedict/tests.py -> build/lib/cedict copying cedict/pinyin.py -> build/lib/cedict copying cedict/cedict_parser.py -> build/lib/cedict copying cedict/__init__.py -> build/lib/cedict + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-pycedict-0.9.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/cedict copying cedict/tests.py -> build/lib/cedict copying cedict/pinyin.py -> build/lib/cedict copying cedict/cedict_parser.py -> build/lib/cedict copying cedict/__init__.py -> build/lib/cedict + popd ~/RPM/BUILD/python-module-pycedict-0.9.1 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.98125 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-pycedict-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-pycedict-buildroot + cd python-module-pycedict-0.9.1 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-pycedict-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-pycedict-buildroot creating /usr/src/tmp/python-module-pycedict-buildroot/usr creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict copying build/lib/cedict/__init__.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict copying build/lib/cedict/cedict_parser.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict copying build/lib/cedict/pinyin.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict copying build/lib/cedict/tests.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/cedict_parser.py to cedict_parser.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/pinyin.py to pinyin.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/tests.py to tests.pyc running install_egg_info running egg_info creating pycedict.egg-info writing pycedict.egg-info/PKG-INFO writing top-level names to pycedict.egg-info/top_level.txt writing dependency_links to pycedict.egg-info/dependency_links.txt writing manifest file 'pycedict.egg-info/SOURCES.txt' reading manifest file 'pycedict.egg-info/SOURCES.txt' writing manifest file 'pycedict.egg-info/SOURCES.txt' Copying pycedict.egg-info to /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/pycedict-0.9.1-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-pycedict-0.9.1 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-pycedict-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict copying build/lib/cedict/__init__.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict copying build/lib/cedict/cedict_parser.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict copying build/lib/cedict/pinyin.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict copying build/lib/cedict/tests.py -> /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/cedict_parser.py to cedict_parser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/pinyin.py to pinyin.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/tests.py to tests.cpython-35.pyc running install_egg_info running egg_info creating pycedict.egg-info writing dependency_links to pycedict.egg-info/dependency_links.txt writing top-level names to pycedict.egg-info/top_level.txt writing pycedict.egg-info/PKG-INFO writing manifest file 'pycedict.egg-info/SOURCES.txt' reading manifest file 'pycedict.egg-info/SOURCES.txt' writing manifest file 'pycedict.egg-info/SOURCES.txt' Copying pycedict.egg-info to /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/pycedict-0.9.1-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-pycedict-0.9.1 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-pycedict-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-pycedict-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-pycedict-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-pycedict-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-pycedict-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-pycedict-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/__init__.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/cedict_parser.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/pinyin.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/tests.pyc compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/__init__.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/cedict_parser.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/pinyin.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/tests.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-pycedict-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/__init__.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/cedict_parser.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/pinyin.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python2.7/site-packages/cedict/tests.py Bytecompiling python3 modules in /usr/src/tmp/python-module-pycedict-buildroot using python3 unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__pycache__/cedict_parser.cpython-35.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__pycache__/pinyin.cpython-35.pyc unlink /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__pycache__/tests.cpython-35.pyc compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__init__.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/cedict_parser.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/pinyin.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/tests.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-pycedict-buildroot using python3 -O compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__init__.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/cedict_parser.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/pinyin.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/tests.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-pycedict-buildroot using python3 -OO compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/__init__.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/cedict_parser.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/pinyin.py compile /usr/src/tmp/python-module-pycedict-buildroot/usr/lib/python3/site-packages/cedict/tests.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/cedict/__pycache__/tests.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/tests.cpython-35.pyc' './usr/lib/python3/site-packages/cedict/__pycache__/tests.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/tests.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/cedict/__pycache__/pinyin.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/pinyin.cpython-35.pyc' './usr/lib/python3/site-packages/cedict/__pycache__/cedict_parser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/cedict_parser.cpython-35.pyc' './usr/lib/python3/site-packages/cedict/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/cedict/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/cedict/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/cedict/tests.pyo' => './usr/lib/python2.7/site-packages/cedict/tests.pyc' './usr/lib/python2.7/site-packages/cedict/pinyin.pyo' => './usr/lib/python2.7/site-packages/cedict/pinyin.pyc' './usr/lib/python2.7/site-packages/cedict/cedict_parser.pyo' => './usr/lib/python2.7/site-packages/cedict/cedict_parser.pyc' './usr/lib/python2.7/site-packages/cedict/__init__.pyo' => './usr/lib/python2.7/site-packages/cedict/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.39809 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-pycedict-0.9.1 + python setup.py test running test running egg_info writing pycedict.egg-info/PKG-INFO writing top-level names to pycedict.egg-info/top_level.txt writing dependency_links to pycedict.egg-info/dependency_links.txt reading manifest file 'pycedict.egg-info/SOURCES.txt' writing manifest file 'pycedict.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + python cedict/tests.py -v test_defs_correct (__main__.TestIterCEDict) ... ok test_find_entries (__main__.TestIterCEDict) ... ok test_measure_words_correct (__main__.TestIterCEDict) ... ok test_variants_correct (__main__.TestIterCEDict) ... ok test_depinyinize (__main__.TestPinyin) ... ok test_double_dot (__main__.TestPinyin) ... ok test_pinyinize (__main__.TestPinyin) ... ok ---------------------------------------------------------------------- Ran 7 tests in 0.020s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-pycedict-0.9.1 + python3 setup.py test running test running egg_info writing top-level names to pycedict.egg-info/top_level.txt writing dependency_links to pycedict.egg-info/dependency_links.txt writing pycedict.egg-info/PKG-INFO reading manifest file 'pycedict.egg-info/SOURCES.txt' writing manifest file 'pycedict.egg-info/SOURCES.txt' running build_ext test_defs_correct (cedict.tests.TestIterCEDict) ... ERROR test_find_entries (cedict.tests.TestIterCEDict) ... ERROR test_measure_words_correct (cedict.tests.TestIterCEDict) ... ERROR test_variants_correct (cedict.tests.TestIterCEDict) ... ERROR test_depinyinize (cedict.tests.TestPinyin) ... ERROR test_double_dot (cedict.tests.TestPinyin) ... FAIL test_pinyinize (cedict.tests.TestPinyin) ... FAIL test_defs_correct (cedict.tests.TestIterCEDict) ... ERROR test_find_entries (cedict.tests.TestIterCEDict) ... ERROR test_measure_words_correct (cedict.tests.TestIterCEDict) ... ERROR test_variants_correct (cedict.tests.TestIterCEDict) ... ERROR test_depinyinize (cedict.tests.TestPinyin) ... ERROR test_double_dot (cedict.tests.TestPinyin) ... FAIL test_pinyinize (cedict.tests.TestPinyin) ... FAIL ====================================================================== ERROR: test_defs_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 32, in test_defs_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_find_entries (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 24, in test_find_entries for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_measure_words_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 44, in test_measure_words_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_variants_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 55, in test_variants_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_depinyinize (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 68, in test_depinyinize self.assertEqual('xi3huan1', depinyinize('x\u01d0hu\u0101n')) File "/usr/src/RPM/BUILD/python3/cedict/pinyin.py", line 140, in depinyinize src = src.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_defs_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 32, in test_defs_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_find_entries (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 24, in test_find_entries for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_measure_words_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 44, in test_measure_words_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_variants_correct (cedict.tests.TestIterCEDict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 55, in test_variants_correct for ch, chs, pinyin, defs, variants, mw in iter_cedict(self.f): File "/usr/src/RPM/BUILD/python3/cedict/cedict_parser.py", line 103, in iter_cedict m = CEDICT_LINE_REGEX.search(line.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode' ====================================================================== ERROR: test_depinyinize (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 68, in test_depinyinize self.assertEqual('xi3huan1', depinyinize('x\u01d0hu\u0101n')) File "/usr/src/RPM/BUILD/python3/cedict/pinyin.py", line 140, in depinyinize src = src.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' ====================================================================== FAIL: test_double_dot (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 75, in test_double_dot self.assertEqual(pinyinize('lu:4fa3'), 'l\u01dcf\u01ce') AssertionError: 'lu:4fa3' != 'l\u01dcf\u01ce' - lu:4fa3 + l\u01dcf\u01ce ====================================================================== FAIL: test_pinyinize (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 61, in test_pinyinize self.assertEqual(pinyinize('xi3huan1'), 'x\u01d0hu\u0101n') AssertionError: 'xi3huan1' != 'x\u01d0hu\u0101n' - xi3huan1 + x\u01d0hu\u0101n ====================================================================== FAIL: test_double_dot (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 75, in test_double_dot self.assertEqual(pinyinize('lu:4fa3'), 'l\u01dcf\u01ce') AssertionError: 'lu:4fa3' != 'l\u01dcf\u01ce' - lu:4fa3 + l\u01dcf\u01ce ====================================================================== FAIL: test_pinyinize (cedict.tests.TestPinyin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/cedict/tests.py", line 61, in test_pinyinize self.assertEqual(pinyinize('xi3huan1'), 'x\u01d0hu\u0101n') AssertionError: 'xi3huan1' != 'x\u01d0hu\u0101n' - xi3huan1 + x\u01d0hu\u0101n ---------------------------------------------------------------------- Ran 14 tests in 0.004s FAILED (failures=4, errors=10) error: Bad exit status from /usr/src/tmp/rpm-tmp.39809 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.39809 (%check) Command exited with non-zero status 1 3.50user 0.65system 0:04.40elapsed 94%CPU (0avgtext+0avgdata 24876maxresident)k 0inputs+0outputs (0major+120269minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-pycedict-0.9.1-alt1.git20150113.1.src.rpm' failed. Command exited with non-zero status 1 10.08user 2.77system 0:13.46elapsed 95%CPU (0avgtext+0avgdata 122132maxresident)k 0inputs+0outputs (0major+306006minor)pagefaults 0swaps