<86>May 21 04:10:03 userdel[949394]: delete user 'rooter' <86>May 21 04:10:03 userdel[949394]: removed group 'rooter' owned by 'rooter' <86>May 21 04:10:03 userdel[949394]: removed shadow group 'rooter' owned by 'rooter' <86>May 21 04:10:03 groupadd[949429]: group added to /etc/group: name=rooter, GID=993 <86>May 21 04:10:03 groupadd[949429]: group added to /etc/gshadow: name=rooter <86>May 21 04:10:03 groupadd[949429]: new group: name=rooter, GID=993 <86>May 21 04:10:03 useradd[949449]: new user: name=rooter, UID=993, GID=993, home=/root, shell=/bin/bash <86>May 21 04:10:03 userdel[949482]: delete user 'builder' <86>May 21 04:10:03 userdel[949482]: removed group 'builder' owned by 'builder' <86>May 21 04:10:03 userdel[949482]: removed shadow group 'builder' owned by 'builder' <86>May 21 04:10:03 groupadd[949520]: group added to /etc/group: name=builder, GID=994 <86>May 21 04:10:03 groupadd[949520]: group added to /etc/gshadow: name=builder <86>May 21 04:10:03 groupadd[949520]: new group: name=builder, GID=994 <86>May 21 04:10:03 useradd[949553]: new user: name=builder, UID=994, GID=994, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-unittest2-1.1.0-alt4.src.rpm: license not found in '/usr/share/license' directory: Same /usr/src/in/srpm/python3-module-unittest2-1.1.0-alt4.src.rpm: license not found in '/usr/share/license' directory: as <13>May 21 04:10:05 rpmi: mpdecimal-2.5.1-alt1 sisyphus+291245.40.54.1 1643293464 installed <13>May 21 04:10:05 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>May 21 04:10:05 rpmi: libexpat-2.4.7-alt1 sisyphus+296417.100.1.1 1646812526 installed <13>May 21 04:10:05 rpmi: libp11-kit-0.24.1-alt1 sisyphus+293720.100.1.1 1642535281 installed <13>May 21 04:10:05 rpmi: libtasn1-4.18.0-alt1 sisyphus+294217.100.3.1 1643755527 installed <13>May 21 04:10:05 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>May 21 04:10:05 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>May 21 04:10:05 rpmi: ca-certificates-2022.04.01-alt1 sisyphus+297635.100.1.1 1648830809 installed <13>May 21 04:10:05 rpmi: ca-trust-0.1.3-alt1 sisyphus+299449.100.1.1 1651660001 installed <13>May 21 04:10:05 rpmi: p11-kit-trust-0.24.1-alt1 sisyphus+293720.100.1.1 1642535281 installed <13>May 21 04:10:05 rpmi: libcrypto1.1-1.1.1n-alt2 sisyphus+297394.100.2.1 1648745164 installed <13>May 21 04:10:05 rpmi: libssl1.1-1.1.1n-alt2 sisyphus+297394.100.2.1 1648745164 installed <13>May 21 04:10:05 rpmi: python3-3.10.4-alt1 sisyphus+297487.100.1.1 1648620133 installed <13>May 21 04:10:06 rpmi: python3-base-3.10.4-alt1 sisyphus+297487.100.1.1 1648620133 installed <13>May 21 04:10:06 rpmi: tests-for-installed-python3-pkgs-0.1.18-alt1 sisyphus+290420.100.1.1 1637593698 installed <13>May 21 04:10:06 rpmi: rpm-build-python3-0.1.18-alt1 sisyphus+290420.100.1.1 1637593698 installed <13>May 21 04:10:07 rpmi: python3-module-iniconfig-1.1.1-alt1 sisyphus+270533.3400.6.1 1619684870 installed <13>May 21 04:10:07 rpmi: python3-module-six-1.16.0-alt1 sisyphus+283489.100.2.1 1629527308 installed <13>May 21 04:10:07 rpmi: python3-module-tomli-2.0.1-alt1 sisyphus+295189.200.1.1 1644581262 installed <13>May 21 04:10:07 rpmi: python3-module-pluggy-1.0.0-alt1 sisyphus+284853.100.1.1 1631109373 installed <13>May 21 04:10:07 rpmi: python3-module-railroad-diagrams-1.1.1-alt1 sisyphus+294587.100.1.1 1643813088 installed <13>May 21 04:10:07 rpmi: python3-module-pkg_resources-1:62.0.0-alt1 sisyphus+297628.2400.4.1 1649344543 installed <13>May 21 04:10:07 rpmi: python3-module-linecache2-1.0.0-alt1.git20150306.4 sisyphus+280802.600.1.1 1627300877 installed <13>May 21 04:10:07 rpmi: python3-module-markupsafe-1:2.1.1-alt1 sisyphus+296796.100.1.1 1647522025 installed <13>May 21 04:10:07 rpmi: python3-module-jinja2-3.1.1-alt1 sisyphus+300108.100.1.1 1652792706 installed <13>May 21 04:10:07 rpmi: python3-module-pyparsing-3.0.8-alt1 sisyphus+298600.100.1.1 1650195791 installed <13>May 21 04:10:07 rpmi: python3-module-packaging-21.3-alt1 sisyphus+293292.100.4.1 1642663064 installed <13>May 21 04:10:07 rpmi: python3-module-attrs-21.4.0-alt1 sisyphus+295177.100.1.1 1644522092 installed <13>May 21 04:10:07 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+275892.100.2.1 1624872742 installed <13>May 21 04:10:07 rpmi: python3-module-py-1.11.0-alt1 sisyphus+295927.100.2.1 1646050822 installed <13>May 21 04:10:07 rpmi: libpython-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python2-base-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-encodings-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-compiler-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-email-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-unittest-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-ctypes-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-multiprocessing-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-modules-logging-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python-tools-2to3-2.7.18-alt9 sisyphus+296565.100.1.1 1647092089 installed <13>May 21 04:10:07 rpmi: python3-module-pytest-7.1.1-alt1 sisyphus+296825.100.1.1 1647592756 installed <13>May 21 04:10:07 rpmi: python3-module-traceback2-1.4.0-alt3 sisyphus+280802.700.1.1 1627300909 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-unittest2-1.1.0-alt4.nosrc.rpm (w1.gzdio) <13>May 21 04:10:09 rpmi: libpython3-3.10.4-alt1 sisyphus+297487.100.1.1 1648620133 installed <13>May 21 04:10:09 rpmi: libncurses-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966459 installed <13>May 21 04:10:09 rpmi: libtinfo-devel-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966459 installed <13>May 21 04:10:09 rpmi: libncurses-devel-6.3.20211106-alt2 sisyphus+294456.100.3.1 1643966459 installed <13>May 21 04:10:09 rpmi: python3-dev-3.10.4-alt1 sisyphus+297487.100.1.1 1648620133 installed <13>May 21 04:10:09 rpmi: python3-module-setuptools-1:62.0.0-alt1 sisyphus+297628.2400.4.1 1649344543 installed Installing python3-module-unittest2-1.1.0-alt4.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.90000 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-unittest2-1.1.0 + echo 'Source #0 (python3-module-unittest2-1.1.0.tar):' Source #0 (python3-module-unittest2-1.1.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-unittest2-1.1.0.tar + cd python3-module-unittest2-1.1.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.90000 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-unittest2-1.1.0 ++ find ./ -name '*.py' + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/util.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/util.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/util.py --- ./unittest2/util.py (original) +++ ./unittest2/util.py (refactored) @@ -23,7 +23,7 @@ def _common_shorten_repr(*args): args = tuple(map(safe_repr, args)) - maxlen = max(map(len, args)) + maxlen = max(list(map(len, args))) if maxlen <= _MAX_LENGTH: return args + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_unittest2_with.py 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 ./unittest2/test/test_unittest2_with.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_unittest2_with.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_suite.py 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 ./unittest2/test/test_suite.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_suite.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_skipping.py 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 ./unittest2/test/test_skipping.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_skipping.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_setups.py 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 ./unittest2/test/test_setups.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_setups.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_runner.py 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 ./unittest2/test/test_runner.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_runner.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_result.py 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 ./unittest2/test/test_result.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_result.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_program.py 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 ./unittest2/test/test_program.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_program.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_new_tests.py 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 ./unittest2/test/test_new_tests.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_new_tests.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_loader.py 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 ./unittest2/test/test_loader.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_loader.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_functiontestcase.py 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 ./unittest2/test/test_functiontestcase.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_functiontestcase.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_discovery.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/test/test_discovery.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/test/test_discovery.py --- ./unittest2/test/test_discovery.py (original) +++ ./unittest2/test/test_discovery.py (refactored) @@ -7,7 +7,7 @@ try: import builtins except ImportError: - import __builtin__ as builtins + import builtins as builtins import unittest2 import unittest2 as unittest + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_case.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/test/test_case.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/test/test_case.py --- ./unittest2/test/test_case.py (original) +++ ./unittest2/test/test_case.py (refactored) @@ -1247,7 +1247,7 @@ self.assertEqual(len(records), len(matches)) for rec, match in zip(records, matches): self.assertIsInstance(rec, logging.LogRecord) - for k, v in match.items(): + for k, v in list(match.items()): self.assertEqual(getattr(rec, k), v) def testAssertLogsDefaults(self): + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_break.py 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 ./unittest2/test/test_break.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_break.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/test_assertions.py 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 ./unittest2/test/test_assertions.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/test_assertions.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/support.py 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 ./unittest2/test/support.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/test/support.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/dummy.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No files need to be modified. + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/_test_unittest2_with.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/test/_test_unittest2_with.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/test/_test_unittest2_with.py --- ./unittest2/test/_test_unittest2_with.py (original) +++ ./unittest2/test/_test_unittest2_with.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import with_statement + import inspect import sys @@ -86,14 +86,14 @@ one = ''.join(chr(i) for i in range(255)) # this used to cause a UnicodeDecodeError constructing the failure msg with self.assertRaises(self.failureException): - self.assertDictContainsSubset({'foo': one}, {'foo': u('\uFFFD')}) + self.assertDictContainsSubset({'foo': one}, {'foo': u('\\uFFFD')}) def test_formatMessage_unicode_error(self): with catch_warnings(record=True): # This causes a UnicodeWarning due to its craziness one = ''.join(chr(i) for i in range(255)) # this used to cause a UnicodeDecodeError constructing msg - self._formatMessage(one, u('\uFFFD')) + self._formatMessage(one, u('\\uFFFD')) def assertOldResultWarning(self, test, failures): with self.assertWarns(RuntimeWarning): @@ -142,20 +142,20 @@ have to stay around for a few more versions. See #9424. """ old = ( - (self.failIfEqual, (3, 5)), - (self.assertNotEquals, (3, 5)), - (self.failUnlessEqual, (3, 3)), - (self.assertEquals, (3, 3)), - (self.failUnlessAlmostEqual, (2.0, 2.0)), - (self.assertAlmostEquals, (2.0, 2.0)), - (self.failIfAlmostEqual, (3.0, 5.0)), - (self.assertNotAlmostEquals, (3.0, 5.0)), - (self.failUnless, (True,)), - (self.assert_, (True,)), - (self.failUnlessRaises, (TypeError, lambda _: 3.14 + 'spam')), - (self.failIf, (False,)), - (self.assertRaisesRegexp, (KeyError, 'foo', lambda: {}['foo'])), - (self.assertRegexpMatches, ('bar', 'bar')), + (self.assertNotEqual, (3, 5)), + (self.assertNotEqual, (3, 5)), + (self.assertEqual, (3, 3)), + (self.assertEqual, (3, 3)), + (self.assertAlmostEqual, (2.0, 2.0)), + (self.assertAlmostEqual, (2.0, 2.0)), + (self.assertNotAlmostEqual, (3.0, 5.0)), + (self.assertNotAlmostEqual, (3.0, 5.0)), + (self.assertTrue, (True,)), + (self.assertTrue, (True,)), + (self.assertRaises, (TypeError, lambda _: 3.14 + 'spam')), + (self.assertFalse, (False,)), + (self.assertRaisesRegex, (KeyError, 'foo', lambda: {}['foo'])), + (self.assertRegex, ('bar', 'bar')), (self.assertNotRegexpMatches, ('xxx', 'yyy')), ) for meth, args in old: + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/test/__init__.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No files need to be modified. + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/suite.py 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 ./unittest2/suite.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/suite.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/signals.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/signals.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/signals.py --- ./unittest2/signals.py (original) +++ ./unittest2/signals.py (refactored) @@ -35,7 +35,7 @@ if self.called: self.default_handler(signum, frame) self.called = True - for result in _results.keys(): + for result in list(_results.keys()): result.stop() _results = weakref.WeakKeyDictionary() + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/runner.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/runner.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/runner.py --- ./unittest2/runner.py (original) +++ ./unittest2/runner.py (refactored) @@ -187,9 +187,9 @@ expectedFails = unexpectedSuccesses = skipped = 0 try: - results = map(len, (result.expectedFailures, + results = list(map(len, (result.expectedFailures, result.unexpectedSuccesses, - result.skipped)) + result.skipped))) except AttributeError: pass else: @@ -197,7 +197,7 @@ infos = [] if not result.wasSuccessful(): self.stream.write(u("FAILED")) - failed, errored = map(len, (result.failures, result.errors)) + failed, errored = list(map(len, (result.failures, result.errors))) if failed: infos.append(u("failures=%d") % failed) if errored: + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/result.py 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 ./unittest2/result.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/result.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/main.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/main.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/main.py --- ./unittest2/main.py (original) +++ ./unittest2/main.py (refactored) @@ -99,12 +99,12 @@ def _print_help(self, *args, **kwargs): if self.module is None: - print(self._main_parser.format_help()) - print(MAIN_EXAMPLES % {'prog': self.progName}) + print((self._main_parser.format_help())) + print((MAIN_EXAMPLES % {'prog': self.progName})) self._discovery_parser.print_help() else: - print(self._main_parser.format_help()) - print(MODULE_EXAMPLES % {'prog': self.progName}) + print((self._main_parser.format_help())) + print((MODULE_EXAMPLES % {'prog': self.progName})) def parseArgs(self, argv): self._initArgParsers() + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/loader.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/loader.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/loader.py --- ./unittest2/loader.py (original) +++ ./unittest2/loader.py (refactored) @@ -108,7 +108,7 @@ testCaseNames = self.getTestCaseNames(testCaseClass) if not testCaseNames and hasattr(testCaseClass, 'runTest'): testCaseNames = ['runTest'] - loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames)) + loaded_suite = self.suiteClass(list(map(testCaseClass, testCaseNames))) return loaded_suite # XXX After Python 3.5, remove backward compatibility hacks for + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/compatibility.py 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 ./unittest2/compatibility.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/compatibility.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/collector.py 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 ./unittest2/collector.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/collector.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/case.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./unittest2/case.py RefactoringTool: Files that were modified: RefactoringTool: ./unittest2/case.py --- ./unittest2/case.py (original) +++ ./unittest2/case.py (refactored) @@ -94,7 +94,7 @@ class_types = [type] if getattr(types, 'ClassType', None): - class_types.append(types.ClassType) + class_types.append(type) class_types = tuple(class_types) @@ -239,7 +239,7 @@ def __enter__(self): # The __warningregistry__'s need to be in a pristine state for tests # to work properly. - for v in sys.modules.values(): + for v in list(sys.modules.values()): if getattr(v, '__warningregistry__', None): v.__warningregistry__ = {} self.warnings_manager = catch_warnings(record=True) @@ -1131,7 +1131,7 @@ """Checks whether actual is a superset of expected.""" missing = [] mismatched = [] - for key, value in expected.items(): + for key, value in list(expected.items()): if key not in actual: missing.append(key) elif value != actual[key]: + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/__main__.py 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 ./unittest2/__main__.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/__main__.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./unittest2/__init__.py 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 ./unittest2/__init__.py RefactoringTool: Files that need to be modified: RefactoringTool: ./unittest2/__init__.py + for i in $(find ./ -name '*.py') + 2to3 -w -n ./setup.py 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: Files that need to be modified: RefactoringTool: ./setup.py + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build /usr/lib/python3/site-packages/setuptools/dist.py:758: UserWarning: Usage of dash-separated 'force-manifest' will not be supported in future versions. Please use the underscore name 'force_manifest' instead warnings.warn( /usr/lib/python3/site-packages/setuptools/dist.py:531: UserWarning: The version specified (<__main__.late_version object at 0xf7adb9a0>) is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( Traceback (most recent call last): File "/usr/lib/python3/site-packages/setuptools/dist.py", line 529, in _validate_version packaging.version.Version(version) File "/usr/lib/python3/site-packages/setuptools/_vendor/packaging/version.py", line 264, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/setup.py", line 87, in setup(**params) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3/site-packages/setuptools/_distutils/core.py", line 109, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python3/site-packages/setuptools/dist.py", line 482, in __init__ self._validate_version(self.metadata.version) File "/usr/lib/python3/site-packages/setuptools/dist.py", line 537, in _validate_version return setuptools.sic(version) File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/setup.py", line 15, in __str__ from unittest2 import __version__ as VERSION File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/__init__.py", line 40, in from unittest2.collector import collector File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/collector.py", line 3, in from unittest2.loader import defaultTestLoader File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/loader.py", line 13, in from unittest2 import case, suite, util File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/case.py", line 18, in from unittest2 import result File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/result.py", line 10, in from unittest2.compatibility import wraps File "/usr/src/RPM/BUILD/python3-module-unittest2-1.1.0/unittest2/compatibility.py", line 143, in class ChainMap(collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping' error: Bad exit status from /usr/src/tmp/rpm-tmp.90000 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.90000 (%build) Command exited with non-zero status 1 13.70user 0.71system 0:14.42elapsed 99%CPU (0avgtext+0avgdata 22036maxresident)k 0inputs+0outputs (0major+133085minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-unittest2-1.1.0-alt4.src.rpm' failed. Command exited with non-zero status 1 18.97user 4.68system 0:22.77elapsed 103%CPU (0avgtext+0avgdata 103160maxresident)k 0inputs+0outputs (45877major+521385minor)pagefaults 0swaps