Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-markdown2.spec'], chrootPath='/var/lib/mock/infra8-gitforge-pagure-el8-build-106189-858338/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7e786b8b7eff48c4a1b2bcf6c433169f', '-D', '/var/lib/mock/infra8-gitforge-pagure-el8-build-106189-858338/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-markdown2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-markdown2-2.4.1-1.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-markdown2.spec'], chrootPath='/var/lib/mock/infra8-gitforge-pagure-el8-build-106189-858338/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ef7fa36976c14228a7d91e7c7c2d3efb', '-D', '/var/lib/mock/infra8-gitforge-pagure-el8-build-106189-858338/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lz2er0yt:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-markdown2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.El9iVt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf markdown2-2.4.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/markdown2-2.4.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd markdown2-2.4.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JJfD9t + umask 022 + cd /builddir/build/BUILD + cd markdown2-2.4.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/libexec/platform-python setup.py build '--executable=/usr/libexec/platform-python -s' running build running build_py creating build creating build/lib copying lib/markdown2.py -> build/lib running build_scripts creating build/scripts-3.6 copying and adjusting bin/markdown2 -> build/scripts-3.6 changing mode of build/scripts-3.6/markdown2 from 644 to 755 + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.eMDzOv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch ++ dirname /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch + cd markdown2-2.4.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/libexec/platform-python setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr creating /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib creating /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6/site-packages copying build/lib/markdown2.py -> /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6/site-packages byte-compiling /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6/site-packages/markdown2.py to markdown2.cpython-36.pyc writing byte-compilation script '/tmp/tmpeygbksl0.py' /usr/libexec/platform-python /tmp/tmpeygbksl0.py removing /tmp/tmpeygbksl0.py running install_egg_info running egg_info writing lib/markdown2.egg-info/PKG-INFO writing dependency_links to lib/markdown2.egg-info/dependency_links.txt writing top-level names to lib/markdown2.egg-info/top_level.txt reading manifest file 'lib/markdown2.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'README.txt' writing manifest file 'lib/markdown2.egg-info/SOURCES.txt' Copying lib/markdown2.egg-info to /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6/site-packages/markdown2-2.4.1-py3.6.egg-info running install_scripts creating /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/bin copying build/scripts-3.6/markdown2 -> /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/bin/markdown2 to 755 + find /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6/site-packages '(' -name '*.py' -o -name 'py.*' ')' -exec sed -i '1{/^#!/d}' '{}' ';' -exec chmod u=rw,go=r '{}' ';' + /usr/lib/rpm/find-debuginfo.sh -j20 --strict-build-id -m -i --build-id-seed 2.4.1-1.el8 --unique-debug-suffix -2.4.1-1.el8.noarch --unique-debug-src-base python-markdown2-2.4.1-1.el8.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/markdown2-2.4.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/lib/python3.6 using /usr/libexec/platform-python + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Jp7lqw + umask 022 + cd /builddir/build/BUILD + cd markdown2-2.4.1 + pushd test ~/build/BUILD/markdown2-2.4.1/test ~/build/BUILD/markdown2-2.4.1 + /usr/libexec/platform-python test.py -- -knownfailure markdown2/tm/cve-2018-5773 ... ok markdown2/tm/ampersands [htmlentities] ... ok 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_containing_empty_lines ... ok markdown2/tm/blockquote_two_in_a_row ... ok markdown2/tm/blockquote_with_pre ... ok markdown2/tm/break_on_newline ... ok markdown2/tm/code_block_with_tabs [fromphpmarkdown] ... ok markdown2/tm/code_blocks_leading_line ... 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_list_indented [smedberg, issue36, extra, cuddle-lists] ... ok markdown2/tm/cuddled_para_and_list [smedberg, issue33, extra, cuddle-lists] ... 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/fenced_code_blocks_issue113 [extra, fenced-code-blocks, issue113] ... ok markdown2/tm/fenced_code_blocks_issue127 [extra, fenced-code-blocks, issue127] ... ok markdown2/tm/fenced_code_blocks_issue135 [extra, fenced-code-blocks, issue135] ... ok markdown2/tm/fenced_code_blocks_issue161 [extra, fenced-code-blocks] ... ok markdown2/tm/fenced_code_blocks_issue86 [extra, fenced-code-blocks, issue86, issue84, issue87] ... ok markdown2/tm/fenced_code_blocks_leading_lang_space [extra, fenced-code-blocks, pygments] ... FAIL markdown2/tm/fenced_code_blocks_leading_line [extra, fenced-code-blocks] ... ok markdown2/tm/fenced_code_blocks_leading_paragraph [extra, fenced-code-blocks] ... ok markdown2/tm/fenced_code_blocks_safe_highlight [extra, fenced-code-blocks, pygments] ... FAIL markdown2/tm/fenced_code_blocks_simple [extra, fenced-code-blocks] ... ok markdown2/tm/fenced_code_blocks_syntax_highlighting [extra, fenced-code-blocks, pygments] ... FAIL markdown2/tm/fenced_code_blocks_syntax_indentation [extra, fenced-code-blocks, pygments, indentation] ... FAIL markdown2/tm/footnotes ... ok markdown2/tm/footnotes_custom ... 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_smarty-pants ... ok markdown2/tm/footnotes_underscores [issue27] ... ok markdown2/tm/header ... ok markdown2/tm/header_atx_no_preceeding_space ... ok markdown2/tm/header_ids_1 [extra, header-ids] ... ok markdown2/tm/header_ids_2 [extra, header-ids] ... ok markdown2/tm/header_ids_3 [extra, header-ids] ... ok markdown2/tm/header_ids_4 [extra, header-ids, unicode] ... ok markdown2/tm/header_ids_5 [extra, header-ids] ... ok markdown2/tm/headers_tag_friendly [extra, tag-friendly] ... ok markdown2/tm/highlightjs_lang [extra, fenced-code-blocks, highlightjs-lang] ... ok markdown2/tm/hr ... ok markdown2/tm/hr_length ... ok markdown2/tm/hr_spaces ... ok markdown2/tm/html5_block_tags [issue57] ... ok markdown2/tm/html_classes [extras, html-classes, code.as.com] ... ok markdown2/tm/img_in_link ... ok markdown2/tm/incorrect_list_parse [issue165] ... 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/issue341_xss ... ok markdown2/tm/issue348_incomplete_tag ... ok markdown2/tm/issue3_bad_code_color_hack [extra, code-color, unicode, pygments, issue3] ... FAIL markdown2/tm/issue54_escape_link_title [issue54] ... ok markdown2/tm/link_defn_alt_title_delims ... ok markdown2/tm/link_defn_spaces_in_url [issue18] ... ok markdown2/tm/link_nofollow [extras, issue74, issue104] ... 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/link_patterns_escape ... ok markdown2/tm/link_patterns_markdown_syntax ... ok markdown2/tm/link_safe_urls [safe_mode] ... ok markdown2/tm/link_with_blank [extras, issue213] ... ok markdown2/tm/link_with_blank_nofollow [extras, nofollow, blank] ... ok markdown2/tm/lists ... ok markdown2/tm/lists2 [issue16] ... ok markdown2/tm/long_link [issue24] ... ok markdown2/tm/markdown_in_html [markdown-in-html, toc, extra] ... ok markdown2/tm/metadata [extra, metadata, issue78] ... ok markdown2/tm/metadata2 [extra, metadata, issue78] ... 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/not_quite_a_list ... ok markdown2/tm/numbering ... ok markdown2/tm/parens_in_url_4 [fromphpmarkdown] ... ok markdown2/tm/pi_and_xinclude [xml, pi, xinclude] ... ok markdown2/tm/pyshell ... ok markdown2/tm/pyshell_and_fenced_code_blocks [extra, fenced-code-blocks, pygments, pyshell] ... ok markdown2/tm/raw_html ... ok markdown2/tm/ref_links ... ok markdown2/tm/smarty_pants [smarty-pants, issue42] ... ok markdown2/tm/smarty_pants_image_links [smarty-pants, issue76] ... ok markdown2/tm/spoiler ... ok markdown2/tm/strike [extras, strike] ... ok markdown2/tm/sublist-ordered-para [issue67] ... ok markdown2/tm/sublist-para [questionable] ... ok markdown2/tm/syntax_color [extra, code-color, pygments] ... ok markdown2/tm/syntax_color_opts [extra, code-color, pygments] ... FAIL markdown2/tm/tables [extra, tables] ... ok markdown2/tm/task_list [extra, task_list, issue216] ... ok markdown2/tm/toc_1 [toc, extra] ... ok markdown2/tm/toc_2 [toc, extra] ... ok markdown2/tm/toc_3 [toc, extra] ... ok markdown2/tm/toc_4 [toc, extra] ... ok markdown2/tm/toc_5 [toc, extra] ... ok markdown2/tm/toc_depth [toc, extra] ... ok markdown2/tm/tricky_anchors ... ok markdown2/tm/two_comments ... ok markdown2/tm/underline [extras, underline] ... ok markdown2/tm/underline_in_autolink ... ok markdown2/tm/wiki_tables [extra, wiki-tables] ... 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/slow_hr [perf] ... ok markdown2/direct/starter_pre [pre, recipes] ... ok markdown2/direct/toc_with_persistent_object [toc, issue208] ... ok markdown2/doctests/api ... ok ====================================================================== FAIL: markdown2/tm/fenced_code_blocks_leading_lang_space [extra, fenced-code-blocks, pygments] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: 'True:\n[90 chars]v>\n' != 'True:\n[91 chars]v>\n' -
if True:
?                                                                                        ^^
+ 
if True:
?                                                                                        ^^
-     print "hi"
?                  ^
+     print "hi"
?                  ^^
  
: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- ```.python\n if.True:\n ....print."hi"\n ```\n ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n ---- expected HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n ---- diff ---- --- ./tm-cases/fenced_code_blocks_leading_lang_space.html +++ markdown2 ./tm-cases/fenced_code_blocks_leading_lang_space.text @@ -1,3 +1,3 @@ -
if True:
    -    print "hi"
    +
if True:
    +    print "hi"
     
====================================================================== FAIL: markdown2/tm/fenced_code_blocks_safe_highlight [extra, fenced-code-blocks, pygments] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: 'True:\n[571 chars]v>\n' != 'True:\n[572 chars]v>\n' -
if True:
?                                                                                        ^^
+ 
if True:
?                                                                                        ^^
-     print "hi"
?                  ^
+     print "hi"
?                  ^^
  

That's using the fenced-code-blocks extra with Python syntax coloring, if pygments is installed. See http://github.github.com/github-flavored-markdown/.

def foo
      puts "hi"
  end
  
: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- ```python\n if.True:\n ....print."hi"\n ```\n \n That's.using.the.*fenced-code-blocks*.extra.with.Python\n syntax.coloring,.if.`pygments`.is.installed..See\n .\n \n ```ruby\n def.foo\n ....puts."hi"\n end\n ```\n ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n \n

That's.using.the.fenced-code-blocks.extra.with.Python\n syntax.coloring,.if.pygments.is.installed..See\n http://github.github.com/github-flavored-markdown/.

\n \n
def.foo\n
    ....puts."hi"\n
    end\n
    
\n ---- expected HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n \n

That's.using.the.fenced-code-blocks.extra.with.Python\n syntax.coloring,.if.pygments.is.installed..See\n http://github.github.com/github-flavored-markdown/.

\n \n
def.foo\n
    ....puts."hi"\n
    end\n
    
\n ---- diff ---- --- ./tm-cases/fenced_code_blocks_safe_highlight.html +++ markdown2 ./tm-cases/fenced_code_blocks_safe_highlight.text @@ -1,5 +1,5 @@ -
if True:
    -    print "hi"
    +
if True:
    +    print "hi"
     

That's using the fenced-code-blocks extra with Python ====================================================================== FAIL: markdown2/tm/fenced_code_blocks_syntax_highlighting [extra, fenced-code-blocks, pygments] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: 'True:\n[571 chars]v>\n' != 'True:\n[572 chars]v>\n' -

if True:
?                                                                                        ^^
+ 
if True:
?                                                                                        ^^
-     print "hi"
?                  ^
+     print "hi"
?                  ^^
  

That's using the fenced-code-blocks extra with Python syntax coloring, if pygments is installed. See http://github.github.com/github-flavored-markdown/.

def foo
      puts "hi"
  end
  
: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- ```python\n if.True:\n ....print."hi"\n ```\n \n That's.using.the.*fenced-code-blocks*.extra.with.Python\n syntax.coloring,.if.`pygments`.is.installed..See\n .\n \n ```ruby\n def.foo\n ....puts."hi"\n end\n ```\n ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n \n

That's.using.the.fenced-code-blocks.extra.with.Python\n syntax.coloring,.if.pygments.is.installed..See\n http://github.github.com/github-flavored-markdown/.

\n \n
def.foo\n
    ....puts."hi"\n
    end\n
    
\n ---- expected HTML (escaping: .=space, \n=newline) ----
if.True:\n
    ....print."hi"\n
    
\n \n

That's.using.the.fenced-code-blocks.extra.with.Python\n syntax.coloring,.if.pygments.is.installed..See\n http://github.github.com/github-flavored-markdown/.

\n \n
def.foo\n
    ....puts."hi"\n
    end\n
    
\n ---- diff ---- --- ./tm-cases/fenced_code_blocks_syntax_highlighting.html +++ markdown2 ./tm-cases/fenced_code_blocks_syntax_highlighting.text @@ -1,5 +1,5 @@ -
if True:
    -    print "hi"
    +
if True:
    +    print "hi"
     

That's using the fenced-code-blocks extra with Python ====================================================================== FAIL: markdown2/tm/fenced_code_blocks_syntax_indentation [extra, fenced-code-blocks, pygments, indentation] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: 'print "fo[109 chars]v>\n' != 'print "f[111 chars]v>\n'

def foo():
-     print "foo"
?                  ^
+     print "foo"
?                  ^^
  
-     print "bar"
?                  ^
+     print "bar"
?                  ^^
  
: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- ```python\n def.foo():\n ....print."foo"\n \n ....print."bar"\n ```\n ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ----
def.foo():\n
    ....print."foo"\n
    \n
    ....print."bar"\n
    
\n ---- expected HTML (escaping: .=space, \n=newline) ----
def.foo():\n
    ....print."foo"\n
    \n
    ....print."bar"\n
    
\n ---- diff ---- --- ./tm-cases/fenced_code_blocks_syntax_indentation.html +++ markdown2 ./tm-cases/fenced_code_blocks_syntax_indentation.text @@ -1,5 +1,5 @@
def foo():
    -    print "foo"
    +    print "foo"
     
    -    print "bar"
    +    print "bar"
     
====================================================================== FAIL: markdown2/tm/issue3_bad_code_color_hack [extra, code-color, unicode, pygments, issue3] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: '

заголовок

Example from http://code.google.com/p/python-markdown2/issues/detail?id=3#c8.

Some python code:

# комментарий
- if True:
?                                        ^^
+ if True:
?                                        ^^
-     print "hi"
?                  ^
+     print "hi"
?                  ^^
  
: markdown2.py didn't produce the expected HTML: ---- text (escaping: .=space, \n=newline) ---- \n \n ##.заголовок\n \n Example.from..\n \n Some.python.code:\n \n ....:::python\n ....#.комментарий\n ....if.True:\n ........print."hi" ---- Python markdown2.py HTML (escaping: .=space, \n=newline) ---- \n \n

заголовок

\n \n

Example.from.http://code.google.com/p/python-markdown2/issues/detail?id=3#c8.

\n \n

Some.python.code:

\n \n
#.комментарий\n
    if.True:\n
    ....print."hi"\n
    
\n ---- expected HTML (escaping: .=space, \n=newline) ---- \n \n

заголовок

\n \n

Example.from.http://code.google.com/p/python-markdown2/issues/detail?id=3#c8.

\n \n

Some.python.code:

\n \n
#.комментарий\n
    if.True:\n
    ....print."hi"\n
    
\n ---- diff ---- --- ./tm-cases/issue3_bad_code_color_hack.html +++ markdown2 ./tm-cases/issue3_bad_code_color_hack.text @@ -7,6 +7,6 @@

Some python code:

# комментарий
    -if True:
    -    print "hi"
    +if True:
    +    print "hi"
     
====================================================================== FAIL: markdown2/tm/syntax_color_opts [extra, code-color, pygments] ---------------------------------------------------------------------- Traceback (most recent call last): File "./test_markdown2.py", line 196, in metadata_path=m) File "./test_markdown2.py", line 87, in _assertMarkdownPath self._assertMarkdown(text, html, text_path, html_path, opts=opts, **extra) File "./test_markdown2.py", line 137, in _assertMarkdown self.assertEqual(python_norm_html, norm_html, errmsg) AssertionError: '

H[108 chars] 125%">

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

and:

-
use 'zlib'
+ 
use 'zlib'
?                                                                                  +
  sub main(argv)
      puts 'hi'
  end
  
: 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 126 tests in 0.943s
FAILED (6 failures)
~/build/BUILD/markdown2-2.4.1
Processing files: python3-markdown2-2.4.1-1.el8.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.iaizrx
+ :
+ popd
+ exit 0
+ umask 022
+ cd /builddir/build/BUILD
+ cd markdown2-2.4.1
+ DOCDIR=/builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/doc/python3-markdown2
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/doc/python3-markdown2
+ cp -pr CHANGES.md /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/doc/python3-markdown2
+ cp -pr CONTRIBUTORS.txt /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/doc/python3-markdown2
+ cp -pr TODO.txt /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/doc/python3-markdown2
+ exit 0
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.zjWDdx
+ umask 022
+ cd /builddir/build/BUILD
+ cd markdown2-2.4.1
+ LICENSEDIR=/builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/licenses/python3-markdown2
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/licenses/python3-markdown2
+ cp -pr LICENSE.txt /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch/usr/share/licenses/python3-markdown2
+ exit 0
Provides: python3-markdown2 = 2.4.1-1.el8 python3.6dist(markdown2) = 2.4.1 python3dist(markdown2) = 2.4.1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/libexec/platform-python python(abi) = 3.6
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch
Wrote: /builddir/build/RPMS/python3-markdown2-2.4.1-1.el8.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.uy1vOu
+ umask 022
+ cd /builddir/build/BUILD
+ cd markdown2-2.4.1
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/python-markdown2-2.4.1-1.el8.noarch
+ exit 0
Child return code was: 0