Mock Version: 0.9.14 Mock Version: 0.9.14 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec'], False, '/var/lib/mock/centos5-rutgers-staging-build-1557-2317/root/', None, 86400, True, 0, 73, 203, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec'] warning: Could not canonicalize hostname: omachi.rutgers.edu Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-markdown2-1.0.1.16-2.ru.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec'], False, '/var/lib/mock/centos5-rutgers-staging-build-1557-2317/root/', None, 86400, True, 0, 73, 203, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec'] Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9433 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf markdown2-1.0.1.16 + /usr/bin/unzip -qq /builddir/build/SOURCES/markdown2-1.0.1.16.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd markdown2-1.0.1.16 ++ /usr/bin/id -u + '[' 73 = 0 ']' ++ /usr/bin/id -u + '[' 73 = 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9433 + umask 022 + cd /builddir/build/BUILD + cd markdown2-1.0.1.16 + LANG=C + export LANG + unset DISPLAY + /usr/bin/python setup.py build running build running build_py creating build creating build/lib copying lib/markdown2.py -> build/lib running build_scripts creating build/scripts-2.4 copying and adjusting bin/markdown2 -> build/scripts-2.4 changing mode of build/scripts-2.4/markdown2 from 644 to 755 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9433 + umask 022 + cd /builddir/build/BUILD + cd markdown2-1.0.1.16 + LANG=C + export LANG + unset DISPLAY + rm -rf /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild + /usr/bin/python setup.py install -O1 --skip-build --root /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild running install running install_lib creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib/python2.4 creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib/python2.4/site-packages copying build/lib/markdown2.py -> /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib/python2.4/site-packages byte-compiling /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib/python2.4/site-packages/markdown2.py to markdown2.pyc writing byte-compilation script '/tmp/tmp2A08wg.py' /usr/bin/python -O /tmp/tmp2A08wg.py removing /tmp/tmp2A08wg.py running install_scripts creating /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/bin copying build/scripts-2.4/markdown2 -> /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/bin changing mode of /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/bin/markdown2 to 755 + find /var/tmp/python-markdown2-1.0.1.16-2.ru-root-mockbuild/usr/lib/python2.4/site-packages '(' -name '*.py' -o -name 'py.*' ')' -exec sed -i '1{/^#!/d}' '{}' ';' -exec chmod u=rw,go=r '{}' ';' + /usr/lib/rpm/find-debuginfo.sh /builddir/build/BUILD/markdown2-1.0.1.16 find: debug: No such file or directory + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9433 + umask 022 + cd /builddir/build/BUILD + cd markdown2-1.0.1.16 + cd test + /usr/bin/python test.py markdown2/tm/auto_link ... ok markdown2/tm/auto_link_email_with_underscore [issue26] ... ok markdown2/tm/auto_link_safe_mode [issue7, safe_mode] ... ok markdown2/tm/basic_safe_mode [safe_mode] ... ok markdown2/tm/basic_safe_mode_escape [safe_mode] ... ok markdown2/tm/blockquote ... ok markdown2/tm/blockquote_with_pre ... ok markdown2/tm/code_block_with_tabs [fromphpmarkdown] ... ok markdown2/tm/code_safe_emphasis [code_friendly] ... ok markdown2/tm/codeblock ... ok markdown2/tm/codespans ... ok markdown2/tm/codespans_safe_mode [issue9, safe_mode] ... ok markdown2/tm/cuddled_para_and_list [smedberg, issue33] ... ok markdown2/tm/cuddled_with_para ... ok markdown2/tm/demote_headers ... ok markdown2/tm/emacs_head_vars [emacs] ... ok markdown2/tm/emacs_tail_vars [emacs] ... ok markdown2/tm/emphasis ... ok markdown2/tm/escapes [issue15] ... ok markdown2/tm/footnotes ... ok markdown2/tm/footnotes_letters [footnotes] ... ok markdown2/tm/footnotes_markup [footnotes] ... ok markdown2/tm/footnotes_safe_mode_escape [safe_mode, footnotes] ... ok markdown2/tm/footnotes_underscores [issue27] ... ok markdown2/tm/header ... ok markdown2/tm/hr ... ok markdown2/tm/img_in_link ... ok markdown2/tm/inline_links ... ok markdown2/tm/issue21_gt_escaping [issue21, escape] ... ok markdown2/tm/issue2_safe_mode_borks_markup [safe_mode] ... ok markdown2/tm/issue3_bad_code_color_hack [unicode, pygments, issue3] ... ok markdown2/tm/link_defn_alt_title_delims ... ok markdown2/tm/link_defn_spaces_in_url [issue18] ... ok markdown2/tm/link_patterns ... ok markdown2/tm/link_patterns_double_hit [link_patterns] ... ok markdown2/tm/link_patterns_edge_cases [link_patterns] ... ok markdown2/tm/lists ... ok markdown2/tm/lists2 [issue16] ... ok markdown2/tm/long_link [issue24] ... ok markdown2/tm/mismatched_footnotes ... ok markdown2/tm/missing_link_defn ... ok markdown2/tm/nested_list ... ok markdown2/tm/nested_list_safe_mode [issue9, safe_mode] ... ok markdown2/tm/parens_in_url_4 [fromphpmarkdown] ... ok markdown2/tm/pi_and_xinclude [xml, pi, xinclude] ... ok markdown2/tm/pyshell ... ok markdown2/tm/raw_html ... ok markdown2/tm/ref_links ... ok markdown2/tm/sublist-para [questionable] ... ok markdown2/tm/syntax_color [pygments] ... ok markdown2/tm/syntax_color_opts [pygments] ... FAIL markdown2/tm/tricky_anchors ... ok markdown2/tm/two_comments ... ok markdown2/tm/underline_in_autolink ... ok markdown2/tm/xss_quotes [issue30] ... ok markdown2/direct/code_in_strong [code, strong] ... ok markdown2/direct/pre ... ok markdown2/direct/russian [unicode, issue3] ... ok markdown2/direct/starter_pre [pre, recipes] ... ok markdown2/doctests/api ... ok markdown2/doctests/internal ... ok ====================================================================== FAIL: markdown2/tm/syntax_color_opts [pygments] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 120, in test_func = lambda self, t=text_path, o=opts: \ File "./test_markdown2.py", line 53, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts) File "./test_markdown2.py", line 100, in _assertMarkdown errmsg.encode('ascii', 'charreprreplace')) AssertionError: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- Here.is.some.sample.code:\n \n ....:::python\n ....import.sys\n ....def.main(argv=sys.argv):\n ........logging.basicConfig()\n ........log.info('hi')\n \n and:\n \n ....:::ruby\n ....use.'zlib'\n ....sub.main(argv)\n ........puts.'hi'\n ....end\n ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ----

Here.is.some.sample.code:

\n \n import.sys\n def.main(argv=sys.argv):\n ....logging.basicConfig()\n ....log.info('hi')\n \n \n

and:

\n \n use.'zlib'\n sub.main(argv)\n ....puts.'hi'\n end\n \n ---- expected HTML (escaping: .=space, \n=newline) ----

Here.is.some.sample.code:

\n \n
import.sys\n
    def.main(argv=sys.argv):\n
    ....logging.basicConfig()\n
    ....log.info('hi')\n
    
\n \n

and:

\n \n
use.'zlib'\n
    sub.main(argv)\n
    ....puts.'hi'\n
    end\n
    
\n ---- diff ---- --- ./tm-cases/syntax_color_opts.html +++ markdown2 ./tm-cases/syntax_color_opts.text @@ -1,6 +1,6 @@

Here is some sample code:

-
import sys
    +
import sys
     def main(argv=sys.argv):
         logging.basicConfig()
         log.info('hi')
    @@ -8,7 +8,7 @@
     
     

and:

-
use 'zlib'
    +
use 'zlib'
     sub main(argv)
         puts 'hi'
     end
----------------------------------------------------------------------
Ran 61 tests in 0.347s
FAILED (1 failure)
error: Bad exit status from /var/tmp/rpm-tmp.9433 (%check)
    Bad exit status from /var/tmp/rpm-tmp.9433 (%check)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/python-markdown2.spec']
LEAVE do --> EXCEPTION RAISED