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-beautifulsoup4.spec'], chrootPath='/var/lib/mock/cloud9s-openstack-antelope-el9s-build-165342-1000910/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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-beautifulsoup4.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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1672876800 Wrote: /builddir/build/SRPMS/python-beautifulsoup4-4.11.1-1.el9s.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-beautifulsoup4.spec'], chrootPath='/var/lib/mock/cloud9s-openstack-antelope-el9s-build-165342-1000910/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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-beautifulsoup4.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', 'http_proxy': 'http://cache.rdu2.centos.org:8080', 'https_proxy': 'http://cache.rdu2.centos.org:8080', 'no_proxy': '127.0.0.1,::1,localhost,localhost.localdomain,localhost4,localhost4.localdomain4,localhost6,localhost6.localdomain6'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1672876800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZBI2gh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf beautifulsoup4-4.11.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/beautifulsoup4-4.11.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd beautifulsoup4-4.11.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s + cp -a . /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZIUzdv + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s ~/build/BUILD/beautifulsoup4-4.11.1 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s + 2to3 --write --nobackups . 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 ./setup.py RefactoringTool: No changes to ./bs4/__init__.py RefactoringTool: No changes to ./bs4/dammit.py RefactoringTool: No changes to ./bs4/diagnose.py RefactoringTool: No changes to ./bs4/element.py RefactoringTool: No changes to ./bs4/formatter.py RefactoringTool: No changes to ./bs4/builder/__init__.py RefactoringTool: No changes to ./bs4/builder/_html5lib.py RefactoringTool: No changes to ./bs4/builder/_htmlparser.py RefactoringTool: Refactored ./bs4/builder/_lxml.py RefactoringTool: Refactored ./bs4/tests/__init__.py RefactoringTool: No changes to ./bs4/tests/test_builder.py RefactoringTool: No changes to ./bs4/tests/test_builder_registry.py RefactoringTool: Refactored ./bs4/tests/test_dammit.py RefactoringTool: No changes to ./bs4/tests/test_docs.py RefactoringTool: No changes to ./bs4/tests/test_element.py RefactoringTool: No changes to ./bs4/tests/test_formatter.py RefactoringTool: Refactored ./bs4/tests/test_html5lib.py RefactoringTool: Refactored ./bs4/tests/test_htmlparser.py RefactoringTool: No changes to ./bs4/tests/test_lxml.py RefactoringTool: No changes to ./bs4/tests/test_navigablestring.py RefactoringTool: No changes to ./bs4/tests/test_pageelement.py RefactoringTool: No changes to ./bs4/tests/test_soup.py RefactoringTool: No changes to ./bs4/tests/test_tag.py RefactoringTool: No changes to ./bs4/tests/test_tree.py RefactoringTool: Refactored ./doc/source/conf.py --- ./bs4/builder/_lxml.py (original) +++ ./bs4/builder/_lxml.py (refactored) @@ -190,7 +190,7 @@ # TODO: This is a workaround for # https://bugs.launchpad.net/lxml/+bug/1948551. # We can remove it once the upstream issue is fixed. - if len(markup) > 0 and markup[0] == u'\N{BYTE ORDER MARK}': + if len(markup) > 0 and markup[0] == '\N{BYTE ORDER MARK}': markup = markup[1:] yield markup, None, document_declared_encoding, False --- ./bs4/tests/__init__.py (original) +++ ./bs4/tests/__init__.py (refactored) @@ -60,8 +60,8 @@
This document contains a surprise doctype
-
Tag name contains Unicode characters
- +
Tag name contains Unicode characters
+ """ @@ -642,7 +642,7 @@ # not. self.assert_soup( "

• AT&T is in the s&p 500

", - "

\u2022 AT&T is in the s&p 500

" + "

\\u2022 AT&T is in the s&p 500

" ) def test_apos_entity(self): --- ./bs4/tests/test_dammit.py (original) +++ ./bs4/tests/test_dammit.py (refactored) @@ -20,7 +20,7 @@ def test_smart_quotes_to_unicode(self): markup = b"\x91\x92\x93\x94" dammit = UnicodeDammit(markup) - assert dammit.unicode_markup == "\u2018\u2019\u201c\u201d" + assert dammit.unicode_markup == "\\u2018\\u2019\\u201c\\u201d" def test_smart_quotes_to_xml_entities(self): markup = b"\x91\x92\x93\x94" @@ -47,7 +47,7 @@ hebrew = b"\xed\xe5\xec\xf9" dammit = UnicodeDammit(hebrew, ["iso-8859-8"]) assert dammit.original_encoding.lower() == 'iso-8859-8' - assert dammit.unicode_markup == '\u05dd\u05d5\u05dc\u05e9' + assert dammit.unicode_markup == '\\u05dd\\u05d5\\u05dc\\u05e9' def test_dont_see_smart_quotes_where_there_are_none(self): utf_8 = b"\343\202\261\343\203\274\343\202\277\343\202\244 Watch" @@ -125,7 +125,7 @@ bs4.dammit.chardet_dammit = noop dammit = UnicodeDammit(doc) assert True == dammit.contains_replacement_characters - assert "\ufffd" in dammit.unicode_markup + assert "\\ufffd" in dammit.unicode_markup soup = BeautifulSoup(doc, "html.parser") assert soup.contains_replacement_characters @@ -278,7 +278,7 @@ def test_simple_html_substitution(self): # Unicode characters corresponding to named HTML entites # are substituted, and no others. - s = "foo\u2200\N{SNOWMAN}\u00f5bar" + s = "foo\\u2200\N{SNOWMAN}\\u00f5bar" assert self.sub.substitute_html(s) == "foo∀\N{SNOWMAN}õbar" def test_smart_quote_substitution(self): @@ -296,11 +296,11 @@ # A few spot checks of our ability to recognize # special character sequences and convert them # to named entities. - ('⊧', '\u22a7'), - ('𝔑', '\U0001d511'), - ('≧̸', '\u2267\u0338'), + ('⊧', '\\u22a7'), + ('𝔑', '\\U0001d511'), + ('≧̸', '\\u2267\\u0338'), ('¬', '\xac'), - ('⫬', '\u2aec'), + ('⫬', '\\u2aec'), # We _could_ convert | to &verbarr;, but we don't, because # | is an ASCII character. @@ -325,11 +325,11 @@ # Some HTML5 entities correspond either to a single-character # Unicode sequence _or_ to the same character plus U+FE00, # VARIATION SELECTOR 1. We can handle this. - data = "fjords \u2294 penguins" + data = "fjords \\u2294 penguins" markup = "fjords ⊔ penguins" assert self.sub.substitute_html(data) == markup - data = "fjords \u2294\ufe00 penguins" + data = "fjords \\u2294\\ufe00 penguins" markup = "fjords ⊔︀ penguins" assert self.sub.substitute_html(data) == markup --- ./bs4/tests/test_html5lib.py (original) +++ ./bs4/tests/test_html5lib.py (refactored) @@ -196,19 +196,19 @@ # HTMLParserTreeBuilderSmokeTest. It's not in the superclass # because the lxml HTML TreeBuilder _doesn't_ work this way. for input_element, output_unicode, output_element in ( - ("⇄", '\u21c4', b'⇄'), - ('⊧', '\u22a7', b'⊧'), - ('𝔑', '\U0001d511', b'𝔑'), - ('≧̸', '\u2267\u0338', b'≧̸'), + ("⇄", '\\u21c4', b'⇄'), + ('⊧', '\\u22a7', b'⊧'), + ('𝔑', '\\U0001d511', b'𝔑'), + ('≧̸', '\\u2267\\u0338', b'≧̸'), ('¬', '\xac', b'¬'), - ('⫬', '\u2aec', b'⫬'), + ('⫬', '\\u2aec', b'⫬'), ('"', '"', b'"'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), ("fj", 'fj', b'fj'), - ("⊔", '\u2294', b'⊔'), - ("⊔︀", '\u2294\ufe00', b'⊔︀'), + ("⊔", '\\u2294', b'⊔'), + ("⊔︀", '\\u2294\\ufe00', b'⊔︀'), ("'", "'", b"'"), ("|", "|", b"|"), ): --- ./bs4/tests/test_htmlparser.py (original) +++ ./bs4/tests/test_htmlparser.py (refactored) @@ -97,19 +97,19 @@ # convert those Unicode characters to a (potentially # different) named entity on the way out. for input_element, output_unicode, output_element in ( - ("⇄", '\u21c4', b'⇄'), - ('⊧', '\u22a7', b'⊧'), - ('𝔑', '\U0001d511', b'𝔑'), - ('≧̸', '\u2267\u0338', b'≧̸'), + ("⇄", '\\u21c4', b'⇄'), + ('⊧', '\\u22a7', b'⊧'), + ('𝔑', '\\U0001d511', b'𝔑'), + ('≧̸', '\\u2267\\u0338', b'≧̸'), ('¬', '\xac', b'¬'), - ('⫬', '\u2aec', b'⫬'), + ('⫬', '\\u2aec', b'⫬'), ('"', '"', b'"'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), ("fj", 'fj', b'fj'), - ("⊔", '\u2294', b'⊔'), - ("⊔︀", '\u2294\ufe00', b'⊔︀'), + ("⊔", '\\u2294', b'⊔'), + ("⊔︀", '\\u2294\\ufe00', b'⊔︀'), ("'", "'", b"'"), ("|", "|", b"|"), ): --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. RefactoringTool: Refactored ./doc.ptbr/source/conf.py RefactoringTool: Refactored ./doc.ru/source/conf.py RefactoringTool: Refactored ./doc.zh/source/conf.py RefactoringTool: Refactored ./scripts/demonstrate_parser_differences.py -project = u'Beautiful Soup' -copyright = u'2004-2020, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2020, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.ptbr/source/conf.py (original) +++ ./doc.ptbr/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2004-2015, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2015, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.ru/source/conf.py (original) +++ ./doc.ru/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2004-2020, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2020, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.zh/source/conf.py (original) +++ ./doc.zh/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2012, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2012, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./scripts/demonstrate_parser_differences.py (original) +++ ./scripts/demonstrate_parser_differences.py (refactored) @@ -22,13 +22,13 @@ try: from bs4.builder import _lxml parsers.append('lxml') -except ImportError, e: +except ImportError as e: pass try: from bs4.builder import _html5lib parsers.append('html5lib') -except ImportError, e: +except ImportError as e: pass class Demonstration(object): @@ -47,7 +47,7 @@ output = soup.div else: output = soup - except Exception, e: + except Exception as e: output = "[EXCEPTION] %s" % str(e) self.results[parser] = output if previous_output is None: @@ -57,15 +57,15 @@ return uniform_results def dump(self): - print "%s: %s" % ("Markup".rjust(13), self.markup.encode("utf8")) - for parser, output in self.results.items(): - print "%s: %s" % (parser.rjust(13), output.encode("utf8")) + print("%s: %s" % ("Markup".rjust(13), self.markup.encode("utf8"))) + for parser, output in list(self.results.items()): + print("%s: %s" % (parser.rjust(13), output.encode("utf8"))) different_results = [] uniform_results = [] -print "= Testing the following parsers: %s =" % ", ".join(parsers) -print +print("= Testing the following parsers: %s =" % ", ".join(parsers)) +print() input_file = sys.stdin if sys.stdin.isatty(): @@ -83,13 +83,13 @@ else: different_results.append(demo) -print "== Markup that's handled the same in every parser ==" -print +print("== Markup that's handled the same in every parser ==") +print() for demo in uniform_results: demo.dump() - print -print "== Markup that's not handled the same in every parser ==" -print + print() +print("== Markup that's not handled the same in every parser ==") +print() for demo in different_results: demo.dump() - print + print() RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./bs4/__init__.py RefactoringTool: ./bs4/dammit.py RefactoringTool: ./bs4/diagnose.py RefactoringTool: ./bs4/element.py RefactoringTool: ./bs4/formatter.py RefactoringTool: ./bs4/builder/__init__.py RefactoringTool: ./bs4/builder/_html5lib.py RefactoringTool: ./bs4/builder/_htmlparser.py RefactoringTool: ./bs4/builder/_lxml.py RefactoringTool: ./bs4/tests/__init__.py RefactoringTool: ./bs4/tests/test_builder.py RefactoringTool: ./bs4/tests/test_builder_registry.py RefactoringTool: ./bs4/tests/test_dammit.py RefactoringTool: ./bs4/tests/test_docs.py RefactoringTool: ./bs4/tests/test_element.py RefactoringTool: ./bs4/tests/test_formatter.py RefactoringTool: ./bs4/tests/test_html5lib.py RefactoringTool: ./bs4/tests/test_htmlparser.py RefactoringTool: ./bs4/tests/test_lxml.py RefactoringTool: ./bs4/tests/test_navigablestring.py RefactoringTool: ./bs4/tests/test_pageelement.py RefactoringTool: ./bs4/tests/test_soup.py RefactoringTool: ./bs4/tests/test_tag.py RefactoringTool: ./bs4/tests/test_tree.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./doc.ptbr/source/conf.py RefactoringTool: ./doc.ru/source/conf.py RefactoringTool: ./doc.zh/source/conf.py RefactoringTool: ./scripts/demonstrate_parser_differences.py ++ '[' -f _current_flavor ']' ++ true + python_flavor= + '[' -z '' ']' + python_flavor=tmp + '[' tmp '!=' python3 ']' + '[' -d build ']' + '[' -d _build.python3 ']' + echo python3 + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/bs4 copying bs4/diagnose.py -> build/lib/bs4 copying bs4/element.py -> build/lib/bs4 copying bs4/__init__.py -> build/lib/bs4 copying bs4/formatter.py -> build/lib/bs4 copying bs4/dammit.py -> build/lib/bs4 creating build/lib/bs4/builder copying bs4/builder/_lxml.py -> build/lib/bs4/builder copying bs4/builder/__init__.py -> build/lib/bs4/builder copying bs4/builder/_html5lib.py -> build/lib/bs4/builder copying bs4/builder/_htmlparser.py -> build/lib/bs4/builder creating build/lib/bs4/tests copying bs4/tests/test_soup.py -> build/lib/bs4/tests copying bs4/tests/test_tree.py -> build/lib/bs4/tests copying bs4/tests/test_formatter.py -> build/lib/bs4/tests copying bs4/tests/test_element.py -> build/lib/bs4/tests copying bs4/tests/test_lxml.py -> build/lib/bs4/tests copying bs4/tests/test_html5lib.py -> build/lib/bs4/tests copying bs4/tests/test_builder.py -> build/lib/bs4/tests copying bs4/tests/test_htmlparser.py -> build/lib/bs4/tests copying bs4/tests/test_navigablestring.py -> build/lib/bs4/tests copying bs4/tests/test_builder_registry.py -> build/lib/bs4/tests copying bs4/tests/test_tag.py -> build/lib/bs4/tests copying bs4/tests/__init__.py -> build/lib/bs4/tests copying bs4/tests/test_dammit.py -> build/lib/bs4/tests copying bs4/tests/test_docs.py -> build/lib/bs4/tests copying bs4/tests/test_pageelement.py -> build/lib/bs4/tests + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ZQhAN9 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch ++ dirname /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch + cd beautifulsoup4-4.11.1 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s ~/build/BUILD/beautifulsoup4-4.11.1 ++ '[' -f _current_flavor ']' ++ cat _current_flavor + python_flavor=python3 + '[' -z python3 ']' + '[' python3 '!=' python3 ']' + echo python3 + /usr/bin/python3 setup.py install -O1 --skip-build --force --root /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch --prefix /usr running install running install_lib creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9 creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 copying build/lib/bs4/diagnose.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 copying build/lib/bs4/element.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder copying build/lib/bs4/builder/_lxml.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder copying build/lib/bs4/builder/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder copying build/lib/bs4/builder/_html5lib.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder copying build/lib/bs4/builder/_htmlparser.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder copying build/lib/bs4/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_soup.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_tree.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_formatter.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_element.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_lxml.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_html5lib.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_builder.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_htmlparser.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_navigablestring.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_builder_registry.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_tag.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_dammit.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_docs.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/tests/test_pageelement.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests copying build/lib/bs4/formatter.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 copying build/lib/bs4/dammit.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4 byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/diagnose.py to diagnose.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/element.py to element.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder/_lxml.py to _lxml.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder/_html5lib.py to _html5lib.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/builder/_htmlparser.py to _htmlparser.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_soup.py to test_soup.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_tree.py to test_tree.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_formatter.py to test_formatter.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_element.py to test_element.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_lxml.py to test_lxml.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_html5lib.py to test_html5lib.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_builder.py to test_builder.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_htmlparser.py to test_htmlparser.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_navigablestring.py to test_navigablestring.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_builder_registry.py to test_builder_registry.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_tag.py to test_tag.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_dammit.py to test_dammit.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_docs.py to test_docs.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/tests/test_pageelement.py to test_pageelement.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/formatter.py to formatter.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/bs4/dammit.py to dammit.cpython-39.pyc writing byte-compilation script '/tmp/tmpoc_boc1d.py' /usr/bin/python3 /tmp/tmpoc_boc1d.py removing /tmp/tmpoc_boc1d.py running install_egg_info running egg_info writing beautifulsoup4.egg-info/PKG-INFO writing dependency_links to beautifulsoup4.egg-info/dependency_links.txt writing requirements to beautifulsoup4.egg-info/requires.txt writing top-level names to beautifulsoup4.egg-info/top_level.txt reading manifest file 'beautifulsoup4.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'COPYING.txt' writing manifest file 'beautifulsoup4.egg-info/SOURCES.txt' Copying beautifulsoup4.egg-info to /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages/beautifulsoup4-4.11.1-py3.9.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh -j20 --strict-build-id -m -i --build-id-seed 4.11.1-1.el9s --unique-debug-suffix -4.11.1-1.el9s.noarch --unique-debug-src-base python-beautifulsoup4-4.11.1-1.el9s.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/beautifulsoup4-4.11.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9 using python3.9 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.8U255w + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + PATH=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/bin:/usr/share/Modules/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib64/python3.9/site-packages:/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages + _PYTHONSITE=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib64/python3.9/site-packages:/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/lib/python3.9/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -s /usr/lib/rpm/redhat/import_all_modules.py bs4 Check import: bs4 ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s ~/build/BUILD/beautifulsoup4-4.11.1 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s + /usr/bin/python3 -m unittest discover -s bs4 E ====================================================================== ERROR: tests (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: tests Traceback (most recent call last): File "/usr/lib64/python3.9/unittest/loader.py", line 470, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib64/python3.9/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-1.el9s/bs4/tests/__init__.py", line 11, in import pytest ModuleNotFoundError: No module named 'pytest' ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) + : + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-beautifulsoup4-4.11.1-1.el9s.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.n9ywyu + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + DOCDIR=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/doc/python3-beautifulsoup4 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/doc/python3-beautifulsoup4 + cp -pr NEWS.txt /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/doc/python3-beautifulsoup4 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.akiVjE + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/licenses/python3-beautifulsoup4 + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/licenses/python3-beautifulsoup4 + cp -pr COPYING.txt /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch/usr/share/licenses/python3-beautifulsoup4 + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-beautifulsoup4 = 4.11.1-1.el9s python3-beautifulsoup4 = 4.11.1-1.el9s python3.9-beautifulsoup4 = 4.11.1-1.el9s python3.9dist(beautifulsoup4) = 4.11.1 python3dist(beautifulsoup4) = 4.11.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.9 python3.9dist(soupsieve) > 1.2 Obsoletes: python3-BeautifulSoup < 1:3.2.1-2 python39-beautifulsoup4 < 4.11.1-1.el9s Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch Wrote: /builddir/build/RPMS/python3-beautifulsoup4-4.11.1-1.el9s.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.38kdZ4 + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-1.el9s.noarch + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0